Hi. I just started programming with c++ this morning and i m following the tutorial on this site. I'm trying to write a program that wants me to input an integer between 100 and 200. And then it will be shown on the screen. But i want that when i input an integer below 100, the program will show 100 and when i input upper than 200 the program will show 200. i can solve just one of these two condition by creating a variable and using operators like:
int output = (in<100 ? 100 : in);
or
int output = (in>200 ? 200 : in);
but i dont know how to provide both conditions. I am looking for a way to overcome this problem without using control structures and need your help.