Multiplication Table - Turbo C++

Multiplication Table in Turbo c++ - Programming
I made this activity in school and i want to share to you. This is a multiplication table that you can input the limit of you want to multiply...

Screen Shot:


#include<stdio.h>
#include<conio.h>
#define p printf


main()
    {
    int i,j,num;
    clrscr();

    p("How many numbers?");
    scanf("%d",&num);

    p("\t\t\t MULTIPLICATION TABLE\n\n");
      //  for (j=1;j<=num;j++)
      //  p("\t  %d",j);
       // p("\n");
       for (i=1;i<=num;i++)
       {
        printf("\n ");

        for (j=1;j<=num;j++)
           p("\t  %d",i*j);
       }

    getche();
    return 0;

    }

No comments:

Post a Comment