Is the First Number Greater?
Time limit1sMemory limit128 MB
For each pair of positive integers read until a 0 0 line, print Yes when the first is greater than the second, otherwise No.
- Level
Easy1 of 10
- Topics
- Implementation
- Solved
- No attempts yet
Problem
You are given two positive integers. Write a program that determines whether the first number is greater than the second.
Input
The input consists of several test cases. Each test case is given on a single line as two integers, each between and inclusive. The last line contains two 0s; this line is not processed.
Output
For each test case, print Yes if the first number is greater than the second, and No otherwise, one result per line.