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
|
734 Discussions
|
Please Login in order to post a comment
int s=0;
include
include
include
include
int main() {
}
\ while(n>0){ int a = n%10; sum=sum+a; n=n/10; } use while loop
int main() {
}