+ 1

i want to write a line of code that looks like this if (a>10){ I know that in c++, you cannot just have greater than (>) or less than (<). j it must be (>=) or (<=). But the code I need to write does not include the equal to(=). it just has to be greater than 10. What do I do?

11th Sep 2016, 6:19 PM
Cody Arthur
Cody Arthur - avatar
2 Answers
+ 4
Who says that you cannot have if (a > 10)? Try it. It works! :D
11th Sep 2016, 6:50 PM
Andrei Timofte
Andrei Timofte - avatar
+ 1
yea it worked!!!
11th Sep 2016, 8:33 PM
Cody Arthur
Cody Arthur - avatar