Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.Scanner;
- public class v3_h4 {
- public static void main(String[] args) {
- Scanner lukija = new Scanner(System.in);
- int i;
- int u = 0;
- int t;
- System.out.println("Anna luku (1-10): ");
- i = lukija.nextInt();
- while (u != 10){
- u = u + 1;
- t = u * i;
- System.out.println(u + " * " + i + " = " + t);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement