Friday, February 1, 2019

India Vs England 50-50 Match

  • Problem Description

    Virat Kohli has won the toss against England in a 50 Over World Cup Final 2019. During the Toss time the commentator have him a funny task to test his mathematical skills. 

    Shastri was the umpire to judge his mathematical skills. When the number is 28 he needs tell "INDIA" and when the number is 25 he needs to tell "ENGLAND".

    Refer sample Input and Output:
    Input 1: 20 Output: INDIA
    Input 2: 21 Output: ENGLAND
    Input 3: 22 Output: INDIA

  • CODING ARENA
  • a=int(input())
    if(a%2==0):
        print("INDIA")
    else:
        print("ENGLAND")
  • Test Case 1

    Input (stdin)
    20
    
    
    Expected Output
    INDIA
  • Test Case 2

    Input (stdin)
    21
    
    
    Expected Output
    ENGLAND

No comments:

Post a Comment