0

Stuck on C++ question

int a = 144; int b = 33; if (a>12, this is the part I’m stuck on, b<=) { cout << “You rock!” << endl; }

11th Jul 2020, 12:51 PM
Ayabonga Mpeta
2 ответов
+ 3
Hey Ayabonga Mpeta , correct this int a=144; int b=33; if(a>12 && b<=33) { cout<<"you rock!"; } Use && for both conditions true , use || for one of the conditions to be true.. and also please use appropriate tags
11th Jul 2020, 12:55 PM
Nikhil Maroju
Nikhil Maroju - avatar
+ 1
Please don't write any question or statement into the thread's tags, use relevant words in tags, e.g. a relevant language (C++) and/or subject (conditionals). Appropriate tags helps to narrow down scope and context of the question 👍
11th Jul 2020, 12:58 PM
Ipang