Skip to content

Instantly share code, notes, and snippets.

@tanushbanerjee
Created March 5, 2021 09:59
Show Gist options
  • Save tanushbanerjee/e1830723ccc5ebc5d6bd38a29187089a to your computer and use it in GitHub Desktop.
Save tanushbanerjee/e1830723ccc5ebc5d6bd38a29187089a to your computer and use it in GitHub Desktop.

Problem A: Given 2 integers a and b, print the sum of the 2 numbers Problem B: Given an integers, print the next integer Problem C: Given integer n which represents n minutes, convert minutes to seconds and print them Problem D: Given 2 integers a and b, find the remainder when a divides b Problem E: Given an integer, check if the number is a negative number Problem F: Given a boolean value, if the boolean value is true, then print false, else print true; Problem G: Given an integer, find if the number is less than 100 Problem H: Given an integer, check if the number is divisible by 5 Problem I: Take 3 integers prob, prize, pay as input, print true if prob * prize > pay, else print false Problem J: Given an integer print "YES" if the number is odd else print "NO" Problem K: You are counting points for a basketball game, given the amount of 3-pointers scored and 2-pointers scored, find the final points for the team and return that value (2 -pointers scored, 3-pointers scored). Find the score scored by the team. Problem L: Given an integer age, find the age in days. Problem M: Given an integer a, which refers to a inches, convert inch to foot and print out the answer. Problem N: Given an integer a, which refers to a years, convert years to centuries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment