please give code for this 1 2 4 7 11 16
Answer Posted / kiran
#include<stdio.h>
#include<conio.h>
void main()
{
int p=1;
for(int i=1;i<=5;i++)
{
printf("%d ",p);
p+=i;
}
getch();
}
Is This Answer Correct ? | 34 Yes | 21 No |
Post New Answer View All Answers
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
What is the most efficient way to store flag values?
Explain what is the benefit of using #define to declare a constant?
What do you mean by c?
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
What is operator promotion?
a value that does not change during program execution a) variabe b) argument c) parameter d) none
why return type of main is not necessary in linux
Why flag is used in c?
Explain how are portions of a program disabled in demo versions?
What is the heap in c?
What are local static variables? How can you use them?
write a program to concatenation the string using switch case?
Suggesting that there can be 62 seconds in a minute?
What is the importance of c in your views?