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

May 6, 2017 at 3:14pm
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 May 7, 2017 at 5:58pm
May 6, 2017 at 3:24pm
if(x < 10){
//Is smaller than 10
}

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

if(x > 10){
//Is bigger than 10
}
May 7, 2017 at 7:48pm
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.