0 votes
119 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 254 views
+1 vote
1 answer 121 views
+1 vote
1 answer 129 views
0 votes
1 answer 156 views
0 votes
1 answer 80 views
+1 vote
1 answer 129 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

557 users

...