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
What are the features of the c language?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What is #pragma statements?
What are the functions to open and close the file in c language?
What is array of structure in c?
What is volatile variable in c?
In c programming language, how many parameters can be passed to a function ?
What is operator precedence?
What is int main () in c?
Why doesnt the call scanf work?
What is pointer & why it is used?
given post order,in order construct the corresponding binary tree
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
Is c dynamically typed?
What are the uses of a pointer?