← 返回 cisco 的题目列表Valid Latitude and Longitude
类型:online_judge
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 representing the longitude and latitude respectively. Implement a function that accepts these two values and returns a boolean indicating their validity.
Example
Input
45.0 90.0