Computer Science, asked by daaniaanjum6, 4 days ago

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 devsharmaanirudh
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