Answer Posted / rohit
#include<stdio.h>
int main()
{
int n,sum=0;
printf("enter number");
scanf("%d".&n);
for(int i=0;i<5;i++)
{
sum=sum+n;
}
printf("sum is %d",sum);
return 0;
}
Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
Explain argument and its types.
What is printf () in c?
What is the purpose of sprintf() function?
How do shell structures work?
The file stdio.h, what does it contain?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
what is the height of tree if leaf node is at level 3. please explain
What is the scope of an external variable in c?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
What does node * mean?
What are the properties of union in c?
What tq means in chat?
Explain what is wrong in this statement?
What is restrict keyword in c?
How many identifiers are there in c?