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
Why do we write return 0 in c?
Write a program to swap two numbers without using a temporary variable?
Is there sort function in c?
can anyone please tell about the nested interrupts?
Is int a keyword in c?
What is the difference between typedef and #define?
What is %d used for?
Can a void pointer point to a function?
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
Explain the use of bit fieild.
Why header file is used in c?
Do you know null pointer?
can we have joblib in a proc ?
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
Write a factorial program using C.