Assignment Questions - Java Methods
Assignment Questions - Java Methods
Assignment Questions
Assignment Questions
Q1 - Write a Java method to compute the average of three numbers (Easy)
Input1:
25
45
65
Output1:
45
Input2:
25
25
25
Output2:
25
coding
Output1:
heaps
Output2:
b) If the length of the string is odd there will be one middle character.
Input1:
350
Output1:
Input2:
4004
Output2:
00
2017
Output1:
False
Input2:
2022
Output2:
False
Q4 - Write a Java method to find the smallest number among three numbers. (Medium)
Input1:
25
37
29
Output1:
25
Input2:
25
25
25
Output2:
25