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
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
Can math operations be performed on a void pointer?
What is the process of writing the null pointer?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
What is function in c with example?
What is c language and why we use it?
What is the right way to use errno?
what is reason of your company position's in india no. 1.
How will you write a code for accessing the length of an array without assigning it to another variable?
Explain what are bus errors, memory faults, and core dumps?
What functions are used in dynamic memory allocation in c?
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
What is wrong with this program statement?
What are the advantages of union?