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
Top 50 Best Java Project Ideas for Engineering students and beginners
Top 50 Best Java Project Ideas for Engineering students and beginners The aim of the post Top 50 best Java Project ideas for engineer...
core php programming examples
Core php Programming Examples core php programming examples to swap two numbers <?php $a=20; $b=10; echo "a="."...
Relational Operators in C Language Examples
Relational Operators in C Language In this topic of Relational o p erators in C Language , we will list Relational operators availa...
Top 101 Best Happy Birthday Wishes For Younger Sister in English
Top 101 Best Happy Birthday Wishes For Younger Sister in English In this post “ Top 101 Best Happy Birthday Wishes For Younger Sister in...
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...
Array in C
Array in C Arrays in C are also known as sub scripted variables. Array is basically a collection of similar items. Same thing apply to...
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...
what is php
What is PHP ? The recursive acronym for php is PHP : hypertext preprocessor. It is widely used and accepted open source general purpose...
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 Best 101 Unique Baby Boy Names for Hindu Boys 2016
Top Best 101 Unique Baby Boy Names for Hindu Boys 2016 In this post " Top Best 101 Unique Baby Boy Names for Hindu Boys 2016 ...
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