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 is a protocol in c?
Describe how arrays can be passed to a user defined function
What does the function toupper() do?
List the variables are used for writing doubly linked list program.
What is an identifier?
write a program for the normal snake games find in most of the mobiles.
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
what do u mean by Direct access files? then can u explain about Direct Access Files?
find out largest elemant of diagonalmatrix
What is the general form of a C program?
The statement, int(*x[]) () what does in indicate?
What are examples of structures?
Mention four important string handling functions in c languages .
What is the size of a union variable?
What is an auto variable in c?