Java program that takes a 5 digit number and calculates 2 power
that number and prints it can any one plz post the solved program plzzz its urgent ... thanks in advance
Printable View
Java program that takes a 5 digit number and calculates 2 power
that number and prints it can any one plz post the solved program plzzz its urgent ... thanks in advance
Can be achieved as below
Code:
long a = 99999; //any 5 digit number
long b = a * a;
long s = (long) Math.pow(a,2);