SHARE
TWEET

11 - Lista 1 Lab 2

RastrianDEV Aug 20th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.*;
  2.  
  3. public class Main {
  4.     public static void main(String[] args) {
  5.         int count=1;
  6.         Scanner x = new Scanner(System.in);
  7.         System.out.println("Insira o valor de n:");
  8.         int n = x.nextInt();
  9.         while (count<=10) {
  10.             System.out.println(n+"*"+count+"="+(n*count));
  11.             count++;
  12.         }
  13.     }
  14. }
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