DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  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

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links