Giving error as: The main method should display the result of a sqr method.
Though the program is giving output.
package com.codegym.task.task01.task0127;
/*
Square of a number
*/
public class Solution {
public static void main(String[] args) {
//write your code here
int a = 5;
sqr(a);
System.out.println("The Square of 5 is:" + a);
}
public static int sqr(int a) {
return a * a;
}
}