i wrote a simple code which compiled but failed to actually work
this is wat it looks like
// This is a simple code that code that adds x + y = z using the values x =4, y = 2 class Arithmetic { int x; short y; int z; /*Do the computations*/ public static void main(String args[]) { int x = 4; int y = 2; int z = x + y;//compute z /* use integer values in place of x and y*/ System.out.println("z = x + y"); System.out.println("The value of z"); } }
pls i need help my first write up on my own and its given me concerns