Hy thr... if u put if (x>y) ; cout<<"true"; output 'll b true.... but if v change sign to lesser than no output.. Y? i am bit confused ...help me | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Hy thr... if u put if (x>y) ; cout<<"true"; output 'll b true.... but if v change sign to lesser than no output.. Y? i am bit confused ...help me

11th Aug 2016, 1:03 PM
Jayanth
Jayanth - avatar
2 Antworten
+ 3
since the if condition fails, the control doesn't go inside the loop and does not print "true" and you haven't written anything outside if condition to print anything else
11th Aug 2016, 1:30 PM
kamal joshi
kamal joshi - avatar
0
hmm wow now got it Tysm...kamal
11th Aug 2016, 4:12 PM
Jayanth
Jayanth - avatar