Assignments

Report a typo

Given four variables. Assign values to these variables.

The variable one should be 1, two should be 2, three should be 3 and four should be 4.

Write a program in Java 17
class Main {
public static void main(String[] args) {
// Assign values to these four variables
int one;
int two;
int three;
int four;

System.out.println(one + " " + two + " " + three + " " + four);
}
}
___

Create a free account to access the full topic