Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

please give code for this 1 2 4 7 11 16

Answer Posted / kiran

#include<stdio.h>
#include<conio.h>
void main()
{
int p=1;
for(int i=1;i<=5;i++)
{
printf("%d ",p);
p+=i;
}
getch();
}

Is This Answer Correct ?    35 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.

3184


Where does the name "C" come from, anyway?

1175


Discuss the function of conditional operator, size of operator and comma operator with examples.

1163


By using C language input a date into it and if it is right?

1087


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1176


What is wrong with this program statement?

1044


What is #include cctype?

1126


Does sprintf put null character?

1052


What are unions in c?

1031


Why we use conio h in c?

1242


Is null a keyword in c?

1198


What is the scope of an external variable in c?

1050


Explain how can you be sure that a program follows the ansi c standard?

1481


Differentiate between declaring a variable and defining a variable?

1049


What is the purpose of the preprocessor directive error?

1276