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
What extern c means?
What is typedf?
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b
What is a class c rental property?
What is the difference between text and binary modes?
What is an array in c?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
What is difference between constant pointer and constant variable?
What are the 4 types of organizational structures?
What are structure members?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
What is the difference between āgā and āgā in C?
What does it mean when a pointer is used in an if statement?
how to capitalise first letter of each word in a given string?
What is an auto keyword in c?