This program computes multiplication of two matrices . In this we ask user to enter order or size of matrix A then entered elements for matrix A, same procedure goes for matrix B. But the multiplication does not yield the same process as in case of addition or subtraction of two matrices.
In this program we compute subtraction of two matrices A and B which has same order. First we ask user to enter order or size of matrix, then enter numbers for matrix A and B. In this elements of matrix B subtract from corresponding elements of matrix A . After that gives resultant matrix. To […]
In this program we compute addition of two matrices A and B which has same order. First we ask user to enter order or size of matrix, then enter numbers for matrix A and B. To understand the strategy, let us have look at the dummy matrices. Suppose matrices have order 3×3.
A Prime Number is a number which can be divided only by 1 or by itself. And it must be a whole number greater than 1. No even number, except 2, is prime number as 2 is divided by 1 or 2 only i.e by 1 or by itself.
This program shows how to convert an infix expression to postfix expression. Before proceeding to program, first understand what is difference between infix expression and postfix expression. Infix notation: X + Y. Operators are written in-between their operands. Postfix notation (also known as “Reverse Polish notation”) : X Y + . Operators are written after […]
The following program prints first 10 automorphic number. I am giving you all brief introduction about what actually automorphic numbers are, assuming that some of you might not be aware about that. In mathematics an automorphic number (sometimes referred to as a circular number) is a number whose square “ends” in the same digits as number itself. For example, 52 = 25, 62 = 36, 762 = […]