README.md

December 5, 2022 ยท View on GitHub

Multiplication Table

Description

This code will accept values from the user and them display a multiplication table. If you like this code please vote for it. You can reach me at jakerpomperada@yahoo.com. My Complete home address is Jake Rodriguez Pomperada Purok Pag-asa, Barangay Alijis 6100 Bacolod City, Negros Occidental Philippines. Happy Programming and God Bless :-D

More Info

It will ask the number of columns and rows so that it will generate a multiplication table from the given values of the user.

Displays Multiplication Table.

There is no side effects of using this code.

Submitted On
ByJake Rodriguez Pomperada
LevelAdvanced
User Rating4.7 (14 globes from 3 users)
CompatibilityC, C++ (general), Microsoft Visual C++, Borland C++
CategoryComplete Applications
WorldC / C++
Archive File

Source Code

/* Program : Multiplication Table */
/* Author  : Mr. Jake Rodriguez Pomperada */
/* Date   : December 27, 2007 9:26 PM */
/* Language : C */
/* Tool   : Turbo C 2.0 */
#include <stdio.h>
#include <conio.h>
main ()
{
 int  i=0, j=0;
 int rows=0, cols=0;
  clrscr();
   printf("Enter No. of Rows  : ");
   scanf("%d",&rows);
   printf("Enter No. of Columns : ");
   scanf("%d",&cols);
 printf("\n\n");
 printf("\tTHE MULTIPLICATION TABLE ");
 printf("\n\n");
 for (i = 1; i <= rows; i++)
 {
  for (j = 1; j <= cols; j++)
    printf ("%4d ", i*j);
  printf ("\n");
 }
 getche();
} /* End of Code */