WAP in java , using loop , to input a number and display the average of all it's digits
Answers
Answered by
0
Explanation:
However if you are not taking input from user then you can declare the data type based on the number value, for example if you want to find out the average of three integer numbers then you are declare num1, num2 & num3 as int but you have to use double as the return type of the avr method because the average of 3 integer
Similar questions
CBSE BOARD X,
3 months ago
Computer Science,
3 months ago
Chemistry,
7 months ago
English,
7 months ago
Math,
10 months ago
English,
10 months ago