write the code in c language
for 1+2+4+7+11+16......
Answers
Answered by
0
Answer:Try this.
#include<stdio.h>
void main()
{
int a=1,b,i=0;
while(i<=5)
{
a=a+i;
printf("%d \n",a);
i++;
}
getch();
}
Explanation:please mark as brainliest
Similar questions
Math,
3 months ago
Math,
3 months ago
Accountancy,
3 months ago
English,
8 months ago
Social Sciences,
1 year ago
Physics,
1 year ago