1. Using while loop:
#include
void main( )
{
int b, c=0,d;
printf(“Enter the limit”);
scanf(“%d”, &d);
for(b=1;b<=d;b++)
c=c+b;
printf (“Result=%d”,c”);
}
Answers
Answered by
0
Answer:
answer will be 0
This is your answer
Similar questions