Java Table Writing

This is a simple java program for beginners. The program write the table of specific number that user enter in console.

Source Code 


import java.util.Scanner;
public class Table_writing{
public static void main(String[] args) {
    Scanner input = new Scanner (System.in);
    int num;
    System.out.print( " Enter Number to Write its Table : ");
    num = input.nextInt();
    for (int i =1;i<11;i++)
    {
    System.out.println(num + " * " + i + " = " +num*i);
}   }
}

Output of the Program

Java Table Writing
Share on Google Plus

About Asad

Asad Niazi is Software Engineer , Programmer, Web Developer and a young mentor of BloggersTown and PProgramming. Asad Love to writes about Technology, Programming, Blogging and make money online.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment