please give code for this 1 2 4 7 11 16
Answer Posted / mohan
#include<stdio.h>
void main(){
int i,j=1;
printf("%d\t",j);
for(i=1;i<6;i++){
j=j+i;
printf("%d\t",j);
}
}
| Is This Answer Correct ? | 6 Yes | 13 No |
Post New Answer View All Answers
What is a scope resolution operator in c?
Why is c so popular?
Describe dynamic data structure in c programming language?
Can I initialize unions?
Where define directive used?
Why doesn't C support function overloading?
What is the concatenation operator?
If I have a char * variable pointing to the name of a function ..
How old is c programming language?
What are data types in c language?
What is LINKED LIST? How can you access the last element in a linked list?
How do you list a file’s date and time?
Are pointers really faster than arrays?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
Is c still relevant?