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


Please Help Members By Posting Answers For Below Questions

Which is an example of a structural homology?

764


What are header files in c?

604


What is the purpose of the preprocessor directive error?

665


What is dynamic variable in c?

551


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

692






Can we change the value of static variable in c?

550


With the help of using classes, write a program to add two numbers.

607


Explain what will be the outcome of the following conditional statement if the value of variable s is 10?

732


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)

673


What is an endless loop?

788


What is scope rule of function in c?

537


What is the purpose of clrscr () printf () and getch ()?

581


What are header files? What are their uses?

626


Write program to remove duplicate in an array?

589


What is extern variable in c with example?

528