greater than or equal to in java using double -
i trying utilize <= sign variable. after stating:
double ta = input.nextdouble(); i trying limit ta using double as:
double ta = -58>=ta>=41. i tried couple of ways, tried putting boolean instead of double , tried break them 2 statements. using java , beginner.
this how construction it. trying assign boolean value double.
double ta = input.nextdouble(); if (ta <= -58 || ta >= 41) { //error, not in range } java
No comments:
Post a Comment