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
Where we use clrscr in c?
main() { printf("hello"); fork(); }
while initialization of array why we use a[][2] why not a[2][]...?
When should a type cast be used?
What do you mean by command line argument?
What is indirection in c?
When should a far pointer be used?
How can I remove the leading spaces from a string?
What is the difference between local variable and global variable in c?
What is logical error?
What is a buffer in c?
Write a program to print factorial of given number without using recursion?
Explain how to reverse singly link list.
What is the use of ?: Operator?
What are pointers? What are different types of pointers?