Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » Mathematics ProgramRSS Feeds

Program to print multiplication tables using do while loop

Posted By: Sophie Campbell     Category: C Programming     Views: 20784

Write a program to print multiplication tables using do while loop.

Code for Program to print multiplication tables using do while loop in C Programming

#include<stdio.h>
#include<conio.h>
#define COLMAX 10
#define ROWMAX 12

void main()
{
    int row,col,y;
    row=1;
    clrscr();

    printf("           MULTIPLICATION TABLE             \n");
    printf("____________________________________________\n");

    /* Outer loop begins */
do { col=1; /* Inner loop begins */
do { y=row*col; printf("%4d",y); col=col+1; }while(col<=COLMAX); printf("\n"); row=row+1; }while(row<=ROWMAX); printf("--------------------------------------------\n"); getch(); }
  
Share: 


Didn't find what you were looking for? Find more on Program to print multiplication tables using do while loop Or get search suggestion and latest updates.

Sophie Campbell
Sophie Campbell author of Program to print multiplication tables using do while loop is from Toronto, Canada.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!