FINAL MODULE TASK

1. Multiplication table

Write a program that prompts the user to input a positive integer. It should then print the multiplication table of that number.

public class MultiplicationTable {
    public void printTable(int numberTableToPrint) {
    }
}

2. Pyramid

Write a program that will print

public class Pyramid {
  public void printPyramid(int cathetusLength) {

  }

  public static void main(String[] args) {
      new Pyramid().printPyramid(7);
  }
}

:img.png

3. Power

Write a program that will find power of any number using for loop

public class Power {
  public void printPower(int numberToPrint, int power) {

  }

  public static void main(String[] args) {
      new Power().printPower(10, 3);
  }
}

4. Half-Pyramid

Write a program that will print

public class HalfPyramid {
  public void printHalfPyramid(int cathetusLength) {

  }

  public static void main(String[] args) {
      new HalfPyramid().printHalfPyramid(8);
  }
}

:img_1.png