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
Write a c program to build a heap method using Pointer to function and pointer to structure ?
How many main () function we can have in a project?
What is volatile variable in c?
Define macros.
What is the difference between exit() and _exit() function?
Should I learn c before c++?
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
What are all different types of pointers in c?
What is c programming structure?
What is string length in c?
Which are low level languages?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
Describe explain how arrays can be passed to a user defined function
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
How can I split up a string into whitespace-separated fields?