You are on page 1of 1

1

2 import java.io.*;
3
4 public class once{
5 public static void main(String args[]){
6 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
7 int ini = 0, fin = 0;
8
9 try{
10 prt("Ingrese el numero de tablas: ");
11 ini = Integer.parseInt(br.readLine());
12 prt("Ingrese el rango de multiplicacion: ");
13 fin = Integer.parseInt(br.readLine());
14
15 for(int i=1;i<=ini;i++){
16 prt("\n\n >>>> Tabla del: " + i + "\n " );
17 for(int j=1;j<=fin;j++){
18 int total = i * j;
19 prt("\n" + i + " * " + j + " = " + total);
20 }
21 }
22 }catch(Exception e){
23
24 }
25 }
26 static void prt(String s){
27 System.out.print(s);
28 }
29 }
30
31

You might also like