Tech Programs

Monday, 4 May 2015

Addition Digits in c program language

Addition Digits in c Program 

#include<stdio.h>
int main()
{
int a,b,c,d=0;
scanf("%d",&a);
b=a;
while(b!=0)
{
c=b%10;
d=d+c;
b=b/10;
}
printf("The addtion digits of values %d:%d",a,d);
return 0;
}
printf("Enter the Numbers:");

Output

alltechprogramsEnter the numbers: 3456

The addition of values 3456:18


Posted by Unknown at 03:00
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Unknown
View my complete profile

Blog Archive

  • ▼  2015 (61)
    • ►  October (1)
    • ►  September (2)
    • ►  August (9)
    • ►  July (10)
    • ►  June (19)
    • ▼  May (19)
      • what is html basic information
      • How To Approve Adsense Simple Way
      • What is C History Of C Programming Language
      • blogger Keywords Description Robots for seo
      • Hard disks Security Lock Without Using Software
      • Mobile Friendly Test for seo
      • Addition Digits in c program language
      • leap year check in c program languages
      • check Vowel in c program
      • if else in c Programming Language
      • Division in c program
      • Subtract in c Program
      • multiplication in c program
      • odd or even in c program
      • Addition Program in c language
      • scanf program in c
      • printf In c
      • char string in c program
      • Hello world program in c
    • ►  April (1)
Simple theme. Powered by Blogger.