1 <= W <= 100

The first (and the only) input line contains integer number w (1 ≤ w ≤ 100)....

I just don't know how to say w=(1 ≤ w ≤ 100) in C++ language.

Is it

int w=(1 <= w <= 100); ?

thanks before.
That is telling you what the input will contain, not that you are supposed to check that is the case.
Exactly, it is just saying the input will consist of a number, and that it will lie within the range 1 to 100 inclusive. It's a description.
Last edited on
Topic archived. No new replies allowed.