Great or Awesome
Great or Awesome easy Time Limit: 2 sec Memory Limit: 128000 kB
Last updated
Great or Awesome easy Time Limit: 2 sec Memory Limit: 128000 kB
Last updated
Problem Statement:
Given a number. If the number is greater than 3 then print "great". If the number is greater than 5 then print "awesome". If the number is not greater than 3 or 5, print "bad". Input A single integer x.
Constraints -108 <= x <= 108 Output Output a single string denoting the required answer. Example Sample Input 1: 3
Sample Output 1: bad
Sample Input 2: 4
Sample Output 2: great
Sample Input 3: 6
Sample Output 3: awesome
link: