programming error message

programming error message

import java.util.*;
public class First
{
   
public static void main(String[] args)
{
int exam1,exam2,exam3;
Scanner kbi = new Scanner(System.in);
System.out.printIn("Please type three exam scores");
exam1=kbi.nextInt();
exam2=kbi.nextInt();
exam3=kbi.nextint();
float average = (exam1+exam2+exam3)/3.0f;
if(average > =60)
System.out.printIn("Pass");
else
System.out.printIn("Fail");
}
}

error1.JPG
waltbaby315Asked:
Who is Participating?
 
ioantonConnect With a Mentor Commented:
Remove the space between > and =

if(average >= 60)
0
 
ksivananthCommented:
if(average >= 60)

remove the space!
0
 
ksivananthCommented:
why was the second one accepted while its same as the first one?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.