cesarnascimento

tabuada for

May 12th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.22 KB | None | 0 0
  1. package ex22;
  2. public class ex2 {
  3.  
  4.     public static void main(String[] args) {
  5.         int n1,n2;
  6.         for(n1 = 1;n1 <= 10; n1++){
  7.             for(n2 = 1;n2 <=10; n2++){
  8.                 System.out.println(+n1+ " x "+n2+" = "+n1 * n2);
  9.             }
  10.         }
  11.  
  12.     }
  13.  
  14. }
Add Comment
Please, Sign In to add comment