2. Write a java program
to find average of four numbers given by the user (hint: average= sum of the numbers divided by how many numbers there are)
pls answer fast
Answers
Answered by
2
Answer:
Let's do it!
Explanation:
class average
{
void displayaverage()
{
int a= 5;
int b= 6;
int c= 7;
int d= 8;
average= a+b+c+d/4
system.out.print ("The average is"+ avg);
}
}
Similar questions