please give code for this 1 2 4 7 11 16
Answer Posted / kiran
#include<stdio.h>
#include<conio.h>
void main()
{
int p=1;
for(int i=1;i<=5;i++)
{
printf("%d ",p);
p+=i;
}
getch();
}
| Is This Answer Correct ? | 35 Yes | 23 No |
Post New Answer View All Answers
How the c program is executed?
#include
Explain what is a const pointer?
What does int main () mean?
What do you mean by a local block?
Can a file other than a .h file be included with #include?
Difference between pass by reference and pass by value?
What are Macros? What are its advantages and disadvantages?
Why do we use int main?
What are pointers?
What is the difference between mpi and openmp?
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
Explain what are its uses in c programming?
In a switch statement, explain what will happen if a break statement is omitted?