You are on page 1of 7

Ex.

No:8
First N prime numbers
Date:

Aim
To write the python program First n prime numbers.

Procedure

1. Start the program


2. Get the lowest and upper number
3. Find the prime number and print
4. stop the program

Program

1
Output

Result

2
Ex.No:9
Matrix Multiplication
Date:

Aim
To write the python program to first Matrix Multiplication of given two matrixs

Procedure

1. Start the program


2. Get the First and second matrix.
3. Find the Matrix Multiplication using the for Loop
rmatrix[i][j] += matrix1[i][k] * matrix2[k][j]

4. Print the result matrix


5. Stop the program.

Program

3
Output

Result

4
Ex.No:10
Command Line Arguments
Date:

Aim
To write the python program to Programs that take command line arguments
(word count)
Procedure

1. Start the program


2. Import the import sys.
3. Find the length of the argument
4. Print argument count and word one by one.
5. Stop the program.

Program

5
Output

Result

6
7

You might also like