Professional Documents
Culture Documents
1. Read the start time and end time of a game, in hours. Then calculate the duration of [5]
the game, knowing that the game can begin in a day and finish in another day, with a
maximum duration of 24 hours. The message must be printed “THE GAME LASTED X
HOUR(S)”
Input Output
3. WAP to that reads an integer number N. Now find out if the reverse of that given number [10]
N is greater than the original number or not.
[Hint: Compare first and last digit to decide which number is greater].
Sample Input: Sample Output:
235 Reverse number 532 is greater
521 Reverse number 125 is smaller