0
Print whether the given integer is positive or negative in cpp?
without using 1)no function other than main 2)no conditional statements 3)no shift operators 4)no logical operators 5)no loops 6)no arithmetic operators 6)no relational operators ternary operator can be used
2 ответов
0
cout << (x<0 ? "negative" : "positive");
0
https://code.sololearn.com/c4L4Lyc139KU/?ref=app
any other answers