public static int number = 25;
public static void main(String[] args) {
s=number*number;
System.out.println("square of 25 is" +a);
whats wrong??
Resolved
Comments (3)
- Popular
- New
- Old
You must be signed in to leave a comment
Neptunian
11 August 2018, 20:22
In line 4 you are missing the type of variable you are declaring, it should be:
0
Nehal Abubakar
10 August 2018, 19:17
You have put the printing value incorrect recheck the assigning value and the printing value. You'll understand.
0
Pavlo Plynko Java Developer at CodeGym
10 August 2018, 18:16
You do not have the closing brace in the method main().
0