Valid Latitude and Longitude

Determine if the given latitude and longitude are valid. A valid longitude is between -180 and 180, and a valid latitude is between -90 and 90. The input consists of two floating-point numbers represe...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: