C Program For SUM OF DIGITS.
void main() { int n,t,s=0; clrscr(); printf("Enter the digit"); scanf("%d",&n); while(n>0) { t=n%10; s=s+t; n=n/10; } printf("sum =%d",s); getch(); }
Technicalsymposium.com is an education & event sharing information website-All rights reserved
Copyright Disclaimer:Section 107 of the Copyright Act Fair Use Contents. Purpose of Education & Teaching Intention. Not for commercial purpose.