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> %d is: %d ", PassNo, ourVal ); }

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!