please give code for this 1 2 4 7 11 16
Answer Posted / ashish tiwari
#include<stdio.h>
#include<conio.h>
void main()
{
int p=1,i;
for(i=1;i<=6;i++)
{
printf("%d ",p);
p+=i;
}
getch();
}
| Is This Answer Correct ? | 4 Yes | 8 No |
Post New Answer View All Answers
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
How can I direct output to the printer?
Differentiate between a structure and a union.
What is the data segment that is followed by c?
What is wrong in this statement? scanf(ā%dā,whatnumber);
how should functions be apportioned among source files?
how to write a c program to print list of fruits in alpabetical order?
Explain what is a stream?
What is the scope of global variable in c?
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
What are identifiers and keywords in c?
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
Write a program to generate the Fibinocci Series
Explain what is the concatenation operator?