computer class 9 java
Attachments:
Answers
Answered by
0
import java.util.*;
public class marks
{
public static void main(String args[])
{
Scanner in=new Scanner(System.in);
int b,p,c,m,sum,sum=0;
float avg=0.0F;
System.out.println("enter the marks in physics chemistry and biology");
p=in.nextInt();
c=in.nextInt();
b=in.nextInt();
sum=p+c+b;
avg=sum/3;
if(avg>=40)
System.out.println("You have passed the examination");
else
System.out.println("You have failed in the examination");
}
}
hope my answer has helped you
pls mark my answer as brainliest
public class marks
{
public static void main(String args[])
{
Scanner in=new Scanner(System.in);
int b,p,c,m,sum,sum=0;
float avg=0.0F;
System.out.println("enter the marks in physics chemistry and biology");
p=in.nextInt();
c=in.nextInt();
b=in.nextInt();
sum=p+c+b;
avg=sum/3;
if(avg>=40)
System.out.println("You have passed the examination");
else
System.out.println("You have failed in the examination");
}
}
hope my answer has helped you
pls mark my answer as brainliest
Similar questions