In C LAnguage Please Matrix multiplication Write a program t
In C LAnguage Please
Matrix multiplication
Write a program that creates a multiplication table.
Write a program that can multiply two matrixes.
Solution
The program that creates a multiplication table of a number is as follows:
#include <stdio.h>
#include<conio.h>
int main()
{
int num, i,out;
//enter the number for which the table needs to be printed
printf(\"Enter an integer for which you require multiplication table: \");
scanf(\"%d\",&num);
//applying loop to print the table of num till 10
for(i=1; i<=10; i++)
{
//calculating the value
out = num*i;
printf(\"%d * %d = %d \ \", num, i, out);
}
return 0;
getch();
}
