Computer Science, asked by Gauravphulwani, 10 months ago

Java program
8.)Write a program to input 5 real numbers(floating point number) and find their average. If the average is
greater than 50 print good, otherwise print bad.​

Answers

Answered by vageeshgn2005
23

Answer:

Explanation:

public class brainly

{

public static void main(float a,float b, float c, float d, float e)

{

float avg =(a+b+c+d+e)/5;

if(avg>50)

System.out.println("Good");

else

System.out.println("Bad");

}

}

Answered by nagardivyu
2

Answer:

hope this program will help you

Attachments:
Similar questions