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
Array is an lvalue or not?
Write a program to use switch statement.
What is signed and unsigned?
What are the differences between new and malloc in C?
What is the difference between malloc calloc and realloc in c?
Is using exit() the same as using return?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
Define circular linked list.
How can you find the exact size of a data type in c?
What is integer constants?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
Explain what is the difference between the expression '++a' and 'a++'?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
Is c is a middle level language?