Computer Science, asked by aasthasingh162008, 4 months ago

The marks obtained by a student in 3 different subjects are input by the user. Your program should calculate the average of subjects. Program should then display a message “ Student passed”, if the average greater than 40 otherwise display “Student Failed”. [ Use these values : Mark1 -50, Mark2 –45, Mark3 –50]

Answers

Answered by Amandeep2652
0

class average

{

public static void main(int a; int b; int c)

{

int d;

d=((50+45+50)/3);

System.out.println("Average" + "d");

}

}

Similar questions