Quadrant Identifier
Difficulty: Medium
Phase: 1 · Conditional Thinking
XP Reward: 20 XP
Topics: Conditional Thinking, Medium
Supported Languages: Python, JavaScript, C, C++, Java
Problem Description
Given coordinates x and y (both non-zero) on separate lines, print 'Quadrant 1', 'Quadrant 2', 'Quadrant 3', or 'Quadrant 4'. Input Format: Read input from standard input (stdin). Output Format: Print the result to standard output (stdout).
Constraints
- -10^9 <= N <= 10^9
Examples
Example 1
Input: 2 3
Output: Quadrant 1
Explanation: Sample execution for input 2 3