public static void main (String [] args) {
int z = x+y; (there is an underline at the bottom of x and y)
int x = 22;
int y = 25;
System.out.printIn("The sum of x+y = "+z);
}
anyone anwer this please?
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Karas Java Developer
11 January 2022, 00:50
In the variables declarations, move int z to the bottom.
int x ...
int y ...
int z ...
0