+ 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
7 Answers
+ 9
if (print solo) {
print learn
} else {
print solo
}
//maybe this??
+ 8
condition = false
do
{
if (condition) { print learn }
else { print solo }
condition = !condition
}
while (condition)
+ 8
I think Val's answer is perfect though.
+ 3
Valentinehacker.....ur answer is perfect...
+ 2
guys, i asked for the condition only....u should not add a few lines of program or anything else
+ 1
if(true){
cout<<"solo";
}
else;
cout<<"learn";
+ 1
false