Computer Science, asked by koushalyaab23609, 3 months ago

REWRITE THE FOLLOWING : (1X2=2)
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 goudsuresh345
1

Answer:

THE FOLLOWING : (1X2=2)

1. Using while loop:

#include

void main( )

{

int b, c=0,d;

p

Similar questions