#include<stdio.h>
void main()
{
int r,i,j,k;
clrscr();
printf("Enter the number range: ");
scanf("%d",&r);
for(i=1;i<=r;i++)
{
for(j=1;j<=10;j++)
printf("\n%d*%d=%d ",i,j,i*j);
//printf("\n");
}
getch();
}
#include<iostream.h>
#include<conio.h>
int table(int a);
void main()
{
clrscr();
int a,tab;
cout<<"Enter the number";
cin>>a;
tab=table(a);
for(int q=1;q<=10;q++)
cout<<a<<"*"<<q<<"="<<"\n"<<tab;
getch();
}
int table(int a)
{
int r,i;
for(i=1;i<=10;i++)
r=i*a;
return r;
}
#include<stdio.h>
#include<conio.h>
main()
{
float f;
clrscr();
printf("Enter Any Number=");
scanf("%f",&f);
for(i=1;i<=10;i++)
{
printf("%d\n",f*i);
}
getch();
}
#include<iostream.h>
void main()
{
int n;
cout<<"Enter a number ";
cin>>n;
for(int i=1;i<=10;i++)
{
cout<<n<<" x "<<i<<" = "<<n*i;
cout<<endl;
}
}
#include#includevoid main(){ int a,i;printf("\nThe Multiplication table of 5 is:\n");for(i=1;i
/****************************************** * C Program to print MultiplicationTable * * Author of the Program: M.JAYAKUMAR..* * Date 23 Nov 2006 * * ***************************************/ #include<stdio.h> main() { int i, p=1, table[10]; /* define integres and array */ /* *************************** * Output Formating Begins * ***************************/ for(i=0;i<61;i++) printf("#"); printf("\n# Program to print Multiplication table of any number"); printf("\n# NOTE: To exit type 0 \n"); for(i=0;i<61;i++) printf("#"); /* *************************** * Output Formating ENDS * ***************************/ while(p != 0) { printf("\nWhich table "); scanf("%d",&p); /* takes input from input */ for(i=0;i<10;i++) /* Fills the array */ { if(p==0) /* Stratagy to exit the program Benins */ { printf("Exiting\n"); break; } /* Stratagy to exit the program ends */ table[i]=i+1; /* Fills the array with numbers 1 - 10 */ printf("%2d x %2d = %2d\n", p, table[i], p * table[i]); } } }
#include#includevoid main(){void mul(int n);clrscr();mul(5);//Number to print the Multiplication Tablegetch();}void mul(int n){int i;for(i=1;i
Class&genus
void main() { int a,b,c,d; clrscr(); printf("\n Enter the number for table = "); scanf("%d",&a); printf("\n Enter the number up to which you want to see the table = "); scanf("%d",&b); for(c=1;c<=b;c++) { d=a*c; printf("%d * %d = %d\n", a,c,d); } getch(); }
The matrix multiplication in c language : c program is used to multiply matrices with two dimensional array. This program multiplies two matrices which will be entered by the user.
#include#includevoid main(){ int a,i;printf("\nThe Multiplication table of 5 is:\n");for(i=1;i
Identity property of Multiplication c:
Poor boy
/****************************************** * C Program to print MultiplicationTable * * Author of the Program: M.JAYAKUMAR..* * Date 23 Nov 2006 * * ***************************************/ #include<stdio.h> main() { int i, p=1, table[10]; /* define integres and array */ /* *************************** * Output Formating Begins * ***************************/ for(i=0;i<61;i++) printf("#"); printf("\n# Program to print Multiplication table of any number"); printf("\n# NOTE: To exit type 0 \n"); for(i=0;i<61;i++) printf("#"); /* *************************** * Output Formating ENDS * ***************************/ while(p != 0) { printf("\nWhich table "); scanf("%d",&p); /* takes input from input */ for(i=0;i<10;i++) /* Fills the array */ { if(p==0) /* Stratagy to exit the program Benins */ { printf("Exiting\n"); break; } /* Stratagy to exit the program ends */ table[i]=i+1; /* Fills the array with numbers 1 - 10 */ printf("%2d x %2d = %2d\n", p, table[i], p * table[i]); } } }
c = -7, c = -3, c = 2, and c= 5
Class&genus
#include#includevoid main(){void mul(int n);clrscr();mul(5);//Number to print the Multiplication Tablegetch();}void mul(int n){int i;for(i=1;i
find the program in c-pgms.blogspot.com
void main() { int a,b,c,d; clrscr(); printf("\n Enter the number for table = "); scanf("%d",&a); printf("\n Enter the number up to which you want to see the table = "); scanf("%d",&b); for(c=1;c<=b;c++) { d=a*c; printf("%d * %d = %d\n", a,c,d); } getch(); }
a*(b + c) = a*b + a*c
C Examples on Matrix OperationsA matrix is a rectangular array of numbers or symbols arranged in rows and columns. The following section contains a list of C programs which perform the operations of Addition, Subtraction and Multiplication on the 2 matrices. The section also deals with evaluating the transpose of a given matrix. The transpose of a matrix is the interchange of rows and columns.The section also has programs on finding the trace of 2 matrices, calculating the sum and difference of two matrices. It also has a C program which is used to perform multiplication of a matrix using recursion.C Program to Calculate the Addition or Subtraction & Trace of 2 MatricesC Program to Find the Transpose of a given MatrixC Program to Compute the Product of Two MatricesC Program to Calculate the Sum & Difference of the MatricesC Program to Perform Matrix Multiplication using Recursion