compare f a number is less,equal or greater than 10

what is the pseudo code for comparing if a number is less than,eaqual to or greater than 10.
Thank you in advance
i got the code but as a beginner i want to know how this pseudo code can be displayed in my codeblock once i enter that part.
because the actual quation that i have been asked is "Write a program in C++ which accepts a number, compares if the number is less,
equal or greater than 10 and display the result accordingly."
Last edited on
if(x < 10){
//Is smaller than 10
}

if(x == 10){
//Is equal to 10
}

if(x > 10){
//Is bigger than 10
}
what is the pseudo code for comparing if a number is less than,eaqual to or greater than 10.
Thank you in advance
i got the code but as a beginner i want to know how this pseudo code can be displayed in my codeblock once i enter that part.
because the actual quation that i have been asked is "Write a program in C++ which accepts a number, compares if the number is less,
equal or greater than 10 and display the result accordingly."
Topic archived. No new replies allowed.