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
What is the difference between int main and void main?
What does d mean?
What is return in c programming?
What is the purpose of the statement: strcat (S2, S1)?
Explain what are the different file extensions involved when programming in c?
What is the difference between class and object in c?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
Explain how do you search data in a data file using random access method?
diff between exptected result and requirement?
Write a program on swapping (100, 50)
An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above
What is structure of c program?
What is a pointer value and address in c?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Write a program to swap two numbers without using third variable in c?