Answer Posted / bhagwat
main()
{
int n,i,sum=0,r;
printf("enter the value");
scanf("%d",&n);
while(n!=0)
{
r=n%10;
n=n/10;
sum=sum+r;
}
| Is This Answer Correct ? | 53 Yes | 19 No |
Post New Answer View All Answers
Differentiate between null and void pointers.
all c language question
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
Describe the modifier in c?
When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.
What is the use of bit field?
What is a MAC Address?
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
What is wrong with this program statement? void = 10;
Write a program that accept anumber in words
what is the different bitween abap and abap-hr?
Can you please explain the difference between malloc() and calloc() function?
What is #include stdio h and #include conio h?
Explain how do you generate random numbers in c?
Explain the use of 'auto' keyword