please give code for this 1 2 4 7 11 16
Answer Posted / ashis 6
#include<studio.h>
#include<conio.h>
Void main()
{
Int x,y;
Y=0;
For(x=1;x<=6;x++)
{
Printf("%d",y);
Y=x+y
}
Is This Answer Correct ? | 8 Yes | 4 No |
Post New Answer View All Answers
Which is an example of a structural homology?
What are header files in c?
What is the purpose of the preprocessor directive error?
What is dynamic variable in c?
The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none
Can we change the value of static variable in c?
With the help of using classes, write a program to add two numbers.
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
What is an endless loop?
What is scope rule of function in c?
What is the purpose of clrscr () printf () and getch ()?
What are header files? What are their uses?
Write program to remove duplicate in an array?
What is extern variable in c with example?