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
Why do we use c for the speed of light?
What are the types of type specifiers?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
What is the explanation for prototype function in c?
What is #error and use of it?
What is the scope of an external variable in c?
What does printf does?
How many header files are in c?
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
What are the properties of union in c?
The statement, int(*x[]) () what does in indicate?
What is declaration and definition in c?
What is static memory allocation?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
Explain how can I open a file so that other programs can update it at the same time?