From 82c026c2c92df7d2d4ed70f7e9012fe87e994076 Mon Sep 17 00:00:00 2001 From: VishwajeetK Date: Thu, 12 Dec 2024 10:17:11 +0530 Subject: [PATCH] feat: Add simple example of table --- .../practice/dsa/simple/MultiplicationTable.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 JavaDsaWithTest/src/main/java/org/practice/dsa/simple/MultiplicationTable.java diff --git a/JavaDsaWithTest/src/main/java/org/practice/dsa/simple/MultiplicationTable.java b/JavaDsaWithTest/src/main/java/org/practice/dsa/simple/MultiplicationTable.java new file mode 100644 index 0000000..dbab22e --- /dev/null +++ b/JavaDsaWithTest/src/main/java/org/practice/dsa/simple/MultiplicationTable.java @@ -0,0 +1,13 @@ +package org.practice.dsa.simple; + +public class MultiplicationTable { + public static void main(String[] args) { + printMultiplicationTable(5); + } + + public static void printMultiplicationTable(int number) { + for (int i = 1; i <=10; i++) { + System.out.println(number*i); + } + } +}