Tag: number

05
Apr
2017

Find sum of digits of a given number in C

Code: With While Loop #include<stdio.h> int main() { int N,r,sum; sum=0; printf(“Give a number:”); scanf(“%d”,&N); while(N!=0) {…