+ 2

Try to answer : if(condition){print learn}else {print solo};. What would be the condition so that the output is sololearn.

think out of thr box..; question asked by my professor of programming language pragmatics.....attributed to him

23rd Jul 2017, 4:07 PM
Vakkalagadda Satya Sai Prakash
Vakkalagadda Satya Sai Prakash - avatar
7 Answers
+ 9
if (print solo) { print learn } else { print solo } //maybe this??
23rd Jul 2017, 4:10 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 8
condition = false do { if (condition) { print learn } else { print solo } condition = !condition } while (condition)
23rd Jul 2017, 4:16 PM
Hatsy Rei
Hatsy Rei - avatar
+ 8
I think Val's answer is perfect though.
23rd Jul 2017, 4:20 PM
Hatsy Rei
Hatsy Rei - avatar
+ 3
Valentinehacker.....ur answer is perfect...
23rd Jul 2017, 4:40 PM
Vakkalagadda Satya Sai Prakash
Vakkalagadda Satya Sai Prakash - avatar
+ 2
guys, i asked for the condition only....u should not add a few lines of program or anything else
23rd Jul 2017, 4:40 PM
Vakkalagadda Satya Sai Prakash
Vakkalagadda Satya Sai Prakash - avatar
+ 1
if(true){ cout<<"solo"; } else; cout<<"learn";
23rd Jul 2017, 4:12 PM
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ 
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ  - avatar
+ 1
false
23rd Jul 2017, 4:19 PM
LordGhostX
LordGhostX - avatar