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

What is sizeof in c?

571


What is the difference between #include

and #include “header file”?

552


What does 3 periods mean in texting?

600


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

656


Can the sizeof operator be used to tell the size of an array passed to a function?

620






Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?

2173


What is the general form of a C program?

598


I came across some code that puts a (void) cast before each call to printf. Why?

678


What are extern variables in c?

549


Explain what is a const pointer?

640


What is #include cctype?

580


What is variable declaration and definition in c?

503


Is array a primitive data type in c?

579


What are the salient features of c languages?

625


Which function in C can be used to append a string to another string?

647