please give code for this 1 2 4 7 11 16
Answer Posted / santhoshreddy katam
#include<stdio.h>
#include<conio.h>
void main()
{
int a=1;
for(int i=0;i<=5;i++)
{
a=a+i;
printf("%d/n", a);
getch();
}
}
Is This Answer Correct ? | 36 Yes | 40 No |
Post New Answer View All Answers
Explain threaded binary trees?
Differentiate abs() function from fabs() function.
What are variables c?
Sir i need notes for structure,functions,pointers in c language can you help me please
Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?
Do you know the use of 'auto' keyword?
State the difference between x3 and x[3].
What is a ternary operator in c?
What are external variables in c?
What is difference between Structure and Unions?
what is a function method?give example?
How variables are declared in c?
What is chain pointer in c?
Can we use any name in place of argv and argc as command line arguments?
In C, What is the #line used for?