write a program in java to input three number . calculate and print their sum and average with appropriate messages
Answers
Answered by
9
Answer:
class Average
{
public static void main()
{
int a=1,b=2,c=3;
double avg = (a+b+c)/3.0;
System.out.Print("Average of 1,2 and 3 is: "+ avg);
}
}
please mark as the brainlist and follow me
Similar questions
English,
4 months ago
Social Sciences,
4 months ago
Geography,
4 months ago
Social Sciences,
9 months ago
Math,
9 months ago
History,
11 months ago
Science,
11 months ago