How can i transform while to for | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

How can i transform while to for

for and while

9th Nov 2017, 3:40 AM
unknow unknow
4 Answers
+ 3
for (int i=0;i<=4;i++){...} | | | | \/ int i=0; while (i<=4){... i++; }
9th Nov 2017, 4:23 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
if and else are like pairs. if the condition mentioned in 'if' part evaluates to true then the statements under 'if' will execute. if the condition evaluates to false the else part will execute.. if a case occurs where u have two or more diff conditions and u need either of them true use else if(where u need to.mention your other condition one by one)and a else block for no conditions evaluate to true
9th Nov 2017, 9:07 AM
Prasad K G
Prasad K G - avatar
0
am cofused about if else if and else
9th Nov 2017, 4:33 AM
unknow unknow
0
what is the difference between listbox and combobox and also convert into 32?
9th Nov 2017, 7:04 PM
unknow unknow