0 votes
102 views
in C program by (98.9k points)
edited

What is the equivalent code of the following statement in WHILE LOOP format?

for (a=1; a<=100; a++)

printf ("%d\n", a * a);

 

1 Answer

0 votes
by (98.9k points)
edited by
 
Best answer
a=1;

while (a<=100) {

printf ("%d\n", a * a);

a++;

}

 

Related questions

0 votes
1 answer 241 views
+1 vote
1 answer 99 views
+1 vote
1 answer 115 views
0 votes
1 answer 138 views
0 votes
1 answer 70 views
+1 vote
1 answer 115 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

535 users

...