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 abstract data structure in c?
How do I use void main?
What is fflush() function?
What is a function simple definition?
What is the use of volatile?
What are directives in c?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
What is a structure member in c?
What is this pointer in c plus plus?
What does the format %10.2 mean when included in a printf statement?
how to count no of words,characters,lines in a paragraph.
Explain what does the format %10.2 mean when included in a printf statement?
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
Write a program to swap two numbers without using a temporary variable?
What is meant by operator precedence?