0
Will the statement execute and terminate after the first if or will it continue to execute? Both statements >= 50, ==100 are cor
correct
2 Answers
+ 3
Please could you explain your question better, because I can't really understand it
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