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 is switch in c?
What is the difference between union and anonymous union?
What is NULL pointer?
How can I open files mentioned on the command line, and parse option flags?
Are comments included during the compilation stage and placed in the EXE file as well?
What are multidimensional arrays?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
Is there any demerits of using pointer?
Where are local variables stored in c?
Dont ansi function prototypes render lint obsolete?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
What is the purpose of main() function?
Differentiate between full, complete & perfect binary trees.
Does c have an equivalent to pascals with statement?