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
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 “****”.
Where does the name "C" come from, anyway?
Discuss the function of conditional operator, size of operator and comma operator with examples.
By using C language input a date into it and if it is right?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What is wrong with this program statement?
What is #include cctype?
Does sprintf put null character?
What are unions in c?
Why we use conio h in c?
Is null a keyword in c?
What is the scope of an external variable in c?
Explain how can you be sure that a program follows the ansi c standard?
Differentiate between declaring a variable and defining a variable?
What is the purpose of the preprocessor directive error?