My issue
Help me
My code
2914,2918
Learning course: Solve Programming problems using Python
Problem Link: Problem (Make Avg) - Generate examples Practice Problem in Solve Programming problems using Python - CodeChef
Help me
2914,2918
Learning course: Solve Programming problems using Python
Problem Link: Problem (Make Avg) - Generate examples Practice Problem in Solve Programming problems using Python - CodeChef
Correct Answer(s):
For A = 3 and C = 4, the output is -1
For A = 3 and C = 5, the output is 4
For A = 2 and C = 4, the output is 3
Explanation:
For A = 3 and C = 4, the output is -1 as the average of 3 and 4 cannot be an integer.
For A = 3 and C = 5, the output is 4 as the average of 3 and 5 is 4 - which is an integer.
For A = 2 and C = 4, the output is 3 as the average of 2 nd 4 is 3 - which is an integer.