0
It's saying I have 1 error pls help me find the error
public class Program { public static void main(String[] args) { int x=50; int y=70; double z= math.max(x,y); System.out.println(z); } }
7 Antworten
+ 6
Math (caps M)
+ 2
Jayakrishna🇮🇳 ohhh thanks
+ 2
ÃKR thanks very much .I made a silly mistake
+ 2
It should be capital
Math.max ()
Not
math.max ()
+ 1
Math.max(x, y) ;
Capital M needed
+ 1
public class Program{
public static void main(String[] args) {
int x = 50;
int y = 70;
double z = Math.max(x,y);
System.out.println(z)
}
}