Program that display "6 times" table


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Program that display "6 times" table

  1. #1
    Join Date
    Dec 2004
    Posts
    46

    Program that display "6 times" table

    Using a for loop, I want to write a program that diplays a “6 times” multiplication table; the output should look something like this:

    1 x 6 = 6
    2 x 6 = 12
    3 x 6 = 15
    ………..
    ………..
    12 x 6 = 72

    I am having some problems doing this.

  2. #2
    Join Date
    Sep 2004
    Posts
    150
    PHP Code:

    int max 
    12;
    for (
    int i 1<= maxi++)
    {
    System.out.println(" x 6 is " 6);

    Just change max to whatever you need it to be.

  3. #3
    Join Date
    Dec 2004
    Posts
    46
    Thankyou for your help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center