Slip 9 - B) Write a program to accept two numbers as range and display multiplication table of all numbers within that range.

Solution:


#include <stdio.h>
int main()
{    int  i,j;
        for(j=1; j<=5; j++)
    {
        for(i=1; i<=10; i++)
        { //printf("\t ");
        printf(" \n %d * %d = %d ",j, i, j*i);
        }
    printf("\n");
    }
    return 0;
}

Post a Comment

0 Comments