Multiplication Table

Discussion in 'JavaScript' started by rabi_nawaz, Sep 11, 2012.

  1. #1
    Plz can any one help me for Multiplication Table. How i make this table in java. i want to make 1 to 10 tables in TABLES.
     
    rabi_nawaz, Sep 11, 2012 IP
  2. stuklen

    stuklen Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi, Java or JavaScript?
     
    stuklen, Sep 13, 2012 IP
  3. rabi_nawaz

    rabi_nawaz Greenhorn

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    Javascript
     
    rabi_nawaz, Sep 13, 2012 IP
  4. Web Solutions

    Web Solutions Peon

    Messages:
    64
    Likes Received:
    1
    Best Answers:
    5
    Trophy Points:
    0
    #4
    Sounds like homework assignment. Do you have anything sketched up already ?
     
    Web Solutions, Sep 13, 2012 IP
  5. rabi_nawaz

    rabi_nawaz Greenhorn

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #5
    actualy i want that when i open a page, an alert box appeared, when i write 5 or 6 , 7 or something. and press enter. the shows like that.
    5 x 1 = 5
    5 x 2 = 10
    5 x 3 = 15 complete table like that

    and second or another page i want when i write 5 or something the result shows like that
    5 x 4 x 3 x 2 x 1 = (Answer) . I thimk this called victorial or vactoria?
    Plz help me i want to write with javascript
     
    rabi_nawaz, Sep 13, 2012 IP
  6. Web Solutions

    Web Solutions Peon

    Messages:
    64
    Likes Received:
    1
    Best Answers:
    5
    Trophy Points:
    0
    #6
    var number = prompt("Number:");
    
    for (var i = 1; i <= 10; i++)
    {
        document.write(number + " x " + i + " = " + (number * i) + "<br/>");
    }
    Code (markup):
    Input validation and other customizations are up to you.
     
    Web Solutions, Sep 13, 2012 IP
  7. rabi_nawaz

    rabi_nawaz Greenhorn

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #7
    thanks to help for table. plz check this & help
    second or another page i want when i write 5 or something the result shows like that
    5 x 4 x 3 x 2 x 1 = (Answer) . I thimk this called victorial or vactoria?
    Plz help me i want to write with javascript
     
    rabi_nawaz, Sep 13, 2012 IP