Answer Posted / sarthak patwal
#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int a,b,c,d;
printf ("Enter the number");
scanf ("%d",a);
b=a%10;
c=a/10;
d=b+c;
printf ("The sum of digits is %d",d);
getch();
}
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is sizeof in c?
What is pointer and structure in c?
How does selection sort work in c?
Did c have any year 2000 problems?
Why & is used in scanf in c?
Explain what math functions are available for integers? For floating point?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
What is null in c?
what is the basis for selection of arrays or pointers as data structure in a program
What is assignment operator?
Should I learn data structures in c or python?
hi send me sample aptitude papers of cts?
What is calloc malloc realloc in c?
What is file in c language?
What is the explanation for modular programming?