Home
ETH Times
About php tutorials, SQL Tutorials, Java Tutorials, Work from Home, Happy birthday wishes
Home
Business
Internet
Market
Stock
Downloads
Dvd
Games
Software
Office
Parent Category
Child Category 1
Sub Child Category 1
Sub Child Category 2
Sub Child Category 3
Child Category 2
Child Category 3
Child Category 4
Featured
Health
Childcare
Doctors
Familyd
Write a program to sum the digits of a number in C Language
21:53:00
C Tutorial
Write a program to sum the digits of a number in C Language.
program to sum the digits of a number
main()
{
int n, s=0, m;
printf("Enter the Number");
scanf("%d",&n);
while(n>0)
{
m=n%10;
s=s+m;
n=n/10;
}
printf("Sum of digits = %d",s);
}
Email This
BlogThis!
Share to X
Share to Facebook
Newer Post
Older Post
Home
Social Profiles
Popular
Tags
Blog Archives
Popular Posts
best places to visit in india
Best Places to Visit in India In this post B est Places to Visit in India , we will have a look on a few popular c ities of India. Eve...
Top Best 101 Unique Baby Names for Hindu Girl 2017
Top Best 101 Unique Baby Names for Hindu Girl 2017 The idea of this post Top Best 101 Unique Baby Names for Hindu Girl 2017 is to sugg...
Arithmetic Operators in php Examples
Arithmetic Operators in php Examples In this topic of Arithmetic Operators in php Examples , we will list arithmetic operators available i...
Add Column SQL
Add Column SQL In this post Add Column SQL , we will have an idea about alter table command of sql. After reading this post Add ...
How to add data to a table in sql
How to add data to a table in sql In this post how to add data to a table in sql , we will discuss about inserting rows in sql tabl...
top best deal of the day
Top Best Deal of the Day Flipkart Deal of the Day Best Pen drive Offer Best Deal of the Day offer Sandisk Cruzer Blade USB Util...
Microprocessor 8085 interview questions and answers
Microprocessor 8085 interview questions and answers Here in the post Microprocessor 8085 interview questions and answers , we are post...
Top 101 Interview Questions and Answers of Theory of machines (Mechanical Engineering ) Asked in Interviews and Exams for Freshers andExperienced
Top 101 Interview Questions and Answers of Theory of machines ( Mechanical Engineering ) Asked in Interviews and Exams for Freshers a...
Top Unique Female Baby Names
Top Unique Female Baby Names The idea of this post Top Unique Female Baby Names is...
Top 101 PHP Interview Questions and Answers for Freshers andExperienced with Examples
Top 101 PHP Interview Questions and Answers for Freshers and Experienced with Examples The idea behind the post Top 101 PHP Interv...
Powered by
Blogger
.
Labels
Baby Names
big data
C Tutorial
Civil Engineering FAQ
Computer Engineering FAQ
happy birthday to you
java programming
Life Skills
Mechanical Engineering FAQ
php tutorial
SQL Tutorial
Work From Home
Blog Archive
►
2017
(7)
►
August
(1)
►
July
(1)
►
June
(1)
►
May
(1)
►
April
(1)
►
March
(1)
►
February
(1)
▼
2016
(47)
►
October
(2)
►
September
(7)
►
August
(4)
►
July
(4)
►
June
(4)
►
May
(4)
►
April
(4)
►
March
(5)
►
February
(7)
▼
January
(6)
Best Top 101 Java Interview Questions and Answers ...
Write a C Program to Reverse a Number using while ...
Write a program to sum the digits of a number in C...
Write a program to calculate factorial of a number...
write a program to generate the Fibonacci series i...
Top 10 Best Winter Vacation Spots in the World
►
2015
(59)
►
December
(2)
►
November
(2)
►
October
(11)
►
September
(16)
►
August
(8)
►
July
(9)
►
June
(4)
►
May
(4)
►
April
(3)
Blogger templates