You need to write these conditions, (11<=type_c<=15)
as (11<=type_c && type_c<=15)
.
solved Logical errors and incorrect output when testing if an integer is in a range [duplicate]
You need to write these conditions, (11<=type_c<=15)
as (11<=type_c && type_c<=15)
.
solved Logical errors and incorrect output when testing if an integer is in a range [duplicate]