please give code for this 1 2 4 7 11 16
Answer Posted / yogesh sharma
Try this.
#include<stdio.h>
void main()
{
int a=1,b,i=0;
while(i<=5)
{
a=a+i;
printf("%d \n",a);
i++;
}
getch();
}
| Is This Answer Correct ? | 98 Yes | 51 No |
Post New Answer View All Answers
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
How many types of operators are there in c?
what is a constant pointer in C
What does char * * argv mean in c?
can we change the default calling convention in c if yes than how.........?
how we can make 3d venturing graphics on outer interface
Tell me what is the purpose of 'register' keyword in c language?
Explain low-order bytes.
What is the concatenation operator?
What is the best way of making my program efficient?
What are the types of c language?
What is the easiest sorting method to use?
Give me the code of in-order recursive and non-recursive.
What is the use of function in c?
Write a program to generate random numbers in c?