Results 1 to 2 of 2

Thread: Print multiplication table

  1. #1
    Join Date
    Sep 2010
    Posts
    11

    Print multiplication table

    **************** Print multiplication table ******************

    My program is kinda good, but not really. I'm missing the left side so that my program looks like this....

    1 2 3 4 5 ... ... ... n
    1 1 2 3 4 5
    2 2 4 6 8 10
    3 3 6 9 12 15
    4 4 8 12 16 20
    5 5 10 15 20 25
    ...
    ...
    ...
    n

    I'm not sure how to fix it... here is what I have. Thanks



    #include<stdio.h>

    int main()
    {

    int i,j,size,play;

    printf("Enter size of multiplication table: ");
    scanf("%d", &size);

    for (i=1; i<=size; i++)
    {
    for (j=1; j<=size; j++)
    {
    play=i*j;
    printf("%d ", play);
    }
    }
    }

  2. #2
    Join Date
    Apr 2010
    Posts
    206

    Re: Print multiplication table

    I am not able to understand what kind of output you would like to have because you have mentioned that you want to print a table but the output which you have mentioned does not looks like a multiplication table and hence i would i would like to know hoe your output should look like and hence i can help you out in this matter.

Similar Threads

  1. Replies: 2
    Last Post: 06-08-2012, 07:00 PM
  2. What is the program to print table of given number?
    By Roxy_jacob in forum Software Development
    Replies: 5
    Last Post: 04-09-2011, 10:40 PM
  3. Print Nx2 square table
    By MaryJ in forum Software Development
    Replies: 1
    Last Post: 19-11-2010, 10:16 PM
  4. How to print a Gantt Chart view without table information?
    By Leoniee in forum Windows Software
    Replies: 5
    Last Post: 19-03-2010, 04:35 AM
  5. Need list of fields of table in print
    By Murder in forum Windows Software
    Replies: 4
    Last Post: 03-09-2009, 05:17 PM

Tags for this Thread

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
  •  
Page generated in 1,713,298,704.32694 seconds with 17 queries