Advertisement
ItaiMaman

Untitled

Jan 7th, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. public static void power3() {
  2. Scanner in = new Scanner(System.in);
  3. System.out.println("Enter a positive number");
  4. int num = in.nextInt();
  5. int power = num*num*num;
  6. System.out.println(power);
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement