Advertisement
Guest User

Untitled

a guest
Aug 27th, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. package com.company;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class v3_h4 {
  6. public static void main(String[] args) {
  7. Scanner lukija = new Scanner(System.in);
  8. int i;
  9. int u = 0;
  10. int t;
  11. System.out.println("Anna luku (1-10): ");
  12. i = lukija.nextInt();
  13. while (u != 10){
  14. u = u + 1;
  15. t = u * i;
  16. System.out.println(u + " * " + i + " = " + t);
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement