The program is a simple C program that prints out the multiplication table of a given number. The program starts with the main() function which calls the tables() function. The tables() function prompts the user to enter the table number and the limit (up to which the table should be printed). It then uses a for loop to iterate from 1 to the given limit, and for each iteration, it calculates the product of the current iteration number and the table number, and prints it out. The final output is the multiplication table of the given number, up to the given limit.
#include<stdio.h> void tables(); int main() { tables(); return 0; } void tables() { int i,j,n; printf("\nEnter the Table number:"); scanf("%d",&j); printf("\nEnter the limit:"); scanf("%d",&n); for(i=1;i<=n;i++) { printf("\n%d*%d=%d",i,j,i*j); } }To download raw file Click Here
Enter the Table number:7 Enter the limit:5 1*7=7 2*2=14 3*3=21 4*7=28 5*7=35
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions