0

Will the statement execute and terminate after the first if or will it continue to execute? Both statements >= 50, ==100 are cor

correct

13th Jun 2019, 1:17 PM
magdy19106
2 ответов
+ 3
Please could you explain your question better, because I can't really understand it
13th Jun 2019, 1:31 PM
Airree
Airree - avatar
0
num= 100; if(num >= 50){ cout << "hi" << endl; else if(num == 100){ cout << "yo" << endl; } output: hi ----------------------- num= 100; if(num >= 50){ cout << "hi" << endl; if(num == 100){ cout << "yo" << endl; } output: hi yo
13th Jun 2019, 1:40 PM
Cat Sauce
Cat Sauce - avatar