It's fine. I finally correct my code with the following :
try (Scanner input = new Scanner(System.in)) {
System.out.print("Enter number : ");
int n =...
Type: Posts; User: siid14
It's fine. I finally correct my code with the following :
try (Scanner input = new Scanner(System.in)) {
System.out.print("Enter number : ");
int n =...
I'm doing the following program with the following instruction: Write a Java program to check whether a given integer is a power of 4 or not.
My approach is to take a log of the given number on...