Friday, June 8, 2012

WRITE A PROGRAM TO DISPLAY MULTIPLICATION TABLE.?


♣♣♣ WRITE A PROGRAM TO DISPLAY MULTIPLICATION TABLE. ♣♣♣

import java.io.*;
class pro4
{
            public static void main(String args[]) throws IOException
            {
            int num,cnt,sum;
            InputStreamReader a=new InputStreamReader(System.in);
            BufferedReader b=new BufferedReader(a);
            System.out.print("Enter any number : ");
            num=Integer.parseInt(b.readLine());
                        for(cnt=1;cnt<=10;cnt++)
                        {
                        sum=num*cnt;
                        System.out.println(num+" * "+cnt+" = "+ sum);
                        }
            }
}
  
OUTPUT :-

            Enter any number : 3
            3  *  1  =  3
3  *  2  =  6
            3  *  3  =  9
            3  *  4  =  12
            3  *  5  =  15
3  *  6  =  18
            3  *  7  =  21
            3  *  8  =  24
            3  *  9  =  27
3  *  10  =  30

6 comments:

  1. Excellent pieces. Keep posting such kind of info
    on your page. Im really impressed by your site.
    Hello there, You have done a fantastic job. I'll certainly digg it and for my part suggest to my friends. I'm confident they will
    be benefited from this web site.
    Here is my web site :: reborn dolls

    ReplyDelete
  2. Malaysia & Singapore & brunei ultimate on-line blogshop for wholesale & supply korean add-ons, earrings,
    earstuds, choker, rings, bracelet, bracelet & hair accessories.

    Offer 35 % wholesale price cut. Ship Worldwide
    My page - programas de memória

    ReplyDelete
  3. Admiring the hard work you put into your website and in depth information you provide.
    It's great to come across a blog every once in a while that isn't the same out of date rehashed material.
    Wonderful read! I've saved your site and I'm including your RSS feeds to my
    Google account.

    Also visit my web page ... peoples quotes

    ReplyDelete
  4. This is very interesting, You are an excessively skilled
    blogger. I've joined your feed and look forward to looking for extra of your fantastic post. Additionally, I've shared your site in my social networks

    My blog: recomended videos

    ReplyDelete
  5. Fantastic goods from you, man. I have understand your stuff previous to and you're just extremely great. I actually like what you have acquired here, certainly like what you are stating and the way in which you say it. You make it enjoyable and you still care for to keep it smart. I can't wait
    to read far more from you. This is really a great website.



    My web blog ... sexvideovoyeur.com

    ReplyDelete