REWRITE THE FOLLOWING :
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
1
Explanation:
.....
................................
Similar questions