Question: //trying to find the square of the input value using this for loop, I can get n2 of strings using same algo but cannot get
//trying to find the square of the input value using this for loop, I can get n2 of strings using same algo but cannot get numbers square.. can you please give insight why i am getting a big negative number .
import java.util.Scanner;
public class questionSIX { public static int numberVal(int n) { int a= n; for(int i= 0; i < n; i++) { for(int j= 0; j
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
