please give code for this 1 2 4 7 11 16
Answer Posted / aditya
#include<stdio.h>
int main()
{
int fir=1,nex=0;
for(nex=0;nex<6;nex++)
{fir=fir+nex;
printf("%d ",fir);
}}
| Is This Answer Correct ? | 3 Yes | 8 No |
Post New Answer View All Answers
where are auto variables stored? What are the characteristics of an auto variable?
Tell me what is null pointer in c?
Explain the use of 'auto' keyword
What is return in c programming?
What is gets() function?
What is the difference between far and near in c?
What is wrong with this statement? Myname = 'robin';
Which built-in library function can be used to match a patter from the string?
how we can make 3d venturing graphics on outer interface
What is string concatenation in c?
Why do we need functions in c?
Explain what is the difference between a free-standing and a hosted environment?
Differentiate between full, complete & perfect binary trees.
Explain what is the stack?
Explain heap and queue.