We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Sum of Digits of a Five Digit Number
Sum of Digits of a Five Digit Number
Sort by
recency
|
710 Discussions
|
Please Login in order to post a comment
int main() { int n,s=0,a; scanf("%d",&n); while(n!=0) { a=n%10; s=s+a; n=n/10;} printf("%d",s); }
int main() {
}
include
include
include
include
int main() {
}