SHARE
TWEET

tablica poramnena

a guest Oct 16th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.codewithDZM;
  2.  
  3. import java.util.Scanner;
  4. import java.util.Random;
  5. public class Main
  6. {
  7.  
  8.  
  9.     public static void main(String[] args)
  10.     {
  11.         Scanner sc = new Scanner(System.in);
  12.         int n = sc.nextInt();
  13.  
  14.         for (int i = 1; i <= n; i++)
  15.         {
  16.  
  17.             for (int j = 1; j <= n; j++)
  18.             {
  19.                 System.out.printf( "%4d ", i * j );
  20.             }
  21.             System.out.println();
  22.         }
  23.     }
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top