Computer Science, asked by reoladon1010, 10 months ago

What will be the output?


package robh;
import java.util.Scanner;

public class Robh {

public static void main(String[] args) {
gq();
}
public static void gq(){
System.out.println("I will take over humanity!");
pq();
}
public static void pq(){
Scanner in = new Scanner(System.in);
System.out.println("Enter the number to be squared!");
int x = in.nextInt();
int z =x * x;
System.out.println(z);
gq();
}
}​

Answers

Answered by rudra4699
0

Answer:

don't waste time for writing

Answered by TheKinnG
0

Explanation:

public static void main(String[] args)

Java main method is the entry point of any java program. Its syntax is always public static void main(String[] args). You can only change the name of String array argument, for example you can change args to myStringArgs.

Similar questions