Matrix Formation – C Program

0

A Matrix (plural Matrices) is a rectangular array of numbers, symbols, or expressions, arranged in rows and columns.

For example, the dimensions of the matrix below are 2 × 3 (read “two by three”), because there are two rows and three columns.

{\displaystyle {\begin{bmatrix}1&9&-13\\20&5&-6\end{bmatrix}}.}

So, today we will create C Program of Matrix in which data will be taken from the user dynamically. I used to write C Programs in Code Blocks.

Also, we will perform Addition, Subtraction and Transpose of both the Matrix. The Program which I had created is simple to understand for beginners because i have used only following keywords in the code:

  1. Arrays (to store input data from user)
  2. Nested For Loop
  3. If Else Conditional Operators (to compare both the  matrix)

Below image is the output the program:

matrix

Matrix – C Program

Try to analyze the above given data and create the program from your own.

Failed? Click More below to get the Solution…

Continue reading

Number Sequence – Python Program

5

Here I am back with a new challenge for you guys.

Lets try to create a logic sequence of number in Python. Look at the below image.

num_seq

Number Sequence

The above logic sequence is created using following keywords:

  1. List
  2. Nested For Loop
  3. Print (of course)

Try to analyze the above given data and create the sequence from your own.

Failed? Click More below to get the Solution…

Continue reading