Computer Science, asked by tiwarivaishnavi420, 8 months ago

write the code in c language
for 1+2+4+7+11+16......​

Answers

Answered by suansh96
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
English, 8 months ago