Automated grading of homework assignments and tests
- fork this repository
- solve the task
- commit with proper message
- commit with proper message
Find the largest of the numbers.
Example 1:
Input: a=1 b=4 c=2
Output: 4
Example 2:
Input: a=-5 b=-3 c=-1
Output: -1
Constraints:
- -1018<=num<=1018
Find the smallest of the numbers.
Example 1:
Input: a=1 b=4 c=2
Output: 1
Example 2:
Input: a=-5 b=-3 c=-1
Output: -5
Constraints:
- -1018<=num<=1018
Determine the number between large and small.
Example 1:
Input: a=3 b=7 c=1
Output: 3
Example 2:
Input: a=5 b=5 c=-1
Output: 5
Constraints:
- -1018<=num<=1018
Return zero if the numbers are equal, return the larger one if they are not equal.
Example 1:
Input: a=3 b=7
Output: 7
Example 2:
Input: a=5 b=5
Output: 0
Constraints:
- -1018<=num<=1018
Find the largest digit of the five-digit number.
Example 1:
Input: n=23546
Output: 6
Constraints:
- -1018<=num<=1018
Find the index of the largest digit of the five-digit number.
Example 1:
Input: n=76514
Output: 5
Example 2:
Input: a=54694
Output: 2
Constraints:
- -1018<=num<=1018
Display the message according to the following temperature conditions given to you in Celsius: Use the elif statments. Temp<0: "Freezing" Temp 1-10: "Very Cold" Temp 11-20: "Cold" Temp 21-30: "Normal" Temp 31-40: "Hot" Temp >40: "Very Hot"
Example 1:
Input: n=14
Output: "Cold"
Example 2:
Input: a=2
Output: "Freezing"
Constraints:
- -1018<=num<=1018
Return the days of the week, return the days of the week according to the numbers 1 to 7. Use the elif statments. 1: "Monday" 2: "Tuesday" 3: "Wednesday" 4: "Thursday" 5: "Friday" 6: "Saturday" 7: "Sunday"
Example 1:
Input: n=2
Output: "Tuesday"
Example 2:
Input: a=6
Output: "Saturday"
Constraints:
- -1018<=num<=1018
- don't copy other solutions or any solution
- don't remove comments