Skip to content

kokibas/stage0-module4-loops-taskFinal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%