Which statement should be followed first while statement or if statement when writing the program? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Which statement should be followed first while statement or if statement when writing the program?

11th Jul 2016, 9:51 AM
Rupam Das
Rupam Das - avatar
2 Answers
0
depends on the program u are writing
12th Jul 2016, 2:21 PM
Rishabh Abhani
Rishabh Abhani - avatar
0
Generally we write while statement and then write the if statement so that you can impose a further condition on the value retrieved from the while statement.
26th May 2017, 8:34 PM
Abhishek G