please give code for this 1 2 4 7 11 16
Answer Posted / aditya
#include<stdio.h>
int main()
{
int fir=1,nex=0;
for(nex=0;nex<6;nex++)
{fir=fir+nex;
printf("%d ",fir);
}}
| Is This Answer Correct ? | 3 Yes | 8 No |
Post New Answer View All Answers
How to declare pointer variables?
Why is c called a structured programming language?
The difference between printf and fprintf is ?
What is the difference between printf and scanf in c?
What is a double c?
Which is best book for data structures in c?
How is null defined in c?
What is character set?
Tell me with an example the self-referential structure?
How would you obtain the current time and difference between two times?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
Is python a c language?
Explain how can a program be made to print the name of a source file where an error occurs?
Explain #pragma statements.
write a proram to reverse the string using switch case?