main()
{
int i,n=010;
int sum=0;
for(i=1;i<=n;i++)
{s=s+i;
}
printf("%d",&s);
getch();
}
Answer Posted / sravan
s=10
| Is This Answer Correct ? | 3 Yes | 9 No |
Post New Answer View All Answers
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....
What is a loop?
Is main a keyword in c?
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
What does s c mean in text?
Sir i need notes for structure,functions,pointers in c language can you help me please
about c language
Why clrscr is used in c?
Explain what is wrong with this statement? Myname = ?robin?;
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
Is printf a keyword?
What are the header files used in c language?
What is the use of function in c?