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