public class Solution {
public static void main(String[] args) {
int a = 5;
int b = a * a;
System.out.println(b);
}
public static int sqr(int a) {
return a * a;
}
}
package com.codegym.task.task01.task0127;
/*
Square of a number
*/
public class Solution {
public static void main(String[] args) {
int a = 5;
}
public static int sqr(int a) {
int b = a * a;
System.out.println(b);
return a * a;
}
}