C Program To Find Sum Of Individual Digits | C Programming Arogya Thapa Magar at January 30, 2018 C Programming, C Program To Find Sum Of Individual Digits#include<stdio.h>int main(){ int a, sum; printf("Enter the digits: "); scanf("%d",&a); for(sum=0;a>0;a=a/10) sum = sum + (a%10); printf("Sum of digits: %d",sum); return 0; } Output:- Share To: NextNewer Post PreviousOlder Post Arogya Thapa Magar View Profile
Post A Comment:
0 comments so far,add yours