Sunday, 24 August 2014

Lab01 M4/2557

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package lab02;
import java.util.Scanner;
/**
 *
 * @author PCDcom
 */
public class Main {
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner keyboard = new Scanner(System.in);
        System.out.println("enter an integer");
        int y = keyboard.nextInt();
        int x=1,z;
        while(x<=12){
            z=x*y;          
            System.out.println(y+"x"+x+"="+z);
            x++;
        }
       
    }

}