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
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...
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...
Sql Delete Rows Command
Sql Delete Rows Command In this post Sql Delete Rows Command , we will have idea about deletion of data from sql tables. Sometimes we ...
Oracle SQL Queries Interview Questions and Answers for Experienced
Oracle SQL Queries Interview Questions and Answers for Experienced In this post we will discuss Oracle Sql Queries Interview Quest...
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...
How to Earn Online Without Investment in India 2016
How to Earn Online Without Investment in India 2016 How to Earn Online Without Investment in India 2016 In this post How to Ea...
Data Manipulation Language Commands in Oracle
Data Manipulation Language commands in Oracle Data Manipulation Language commands in Oracle includes insert, delete and update...
Top Unique Female Baby Names
Top Unique Female Baby Names The idea of this post Top Unique Female Baby Names is...
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 ...
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...
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