Intput :-
Enter any line : Liton
Output :-
String length = 5
Intput :-
Enter any line : Samaruk
Output :-
String length = 7
Intput :-
Enter any line : Book
Output :-
String length = 4
Write a program that add & multiply two matrices.
Enter how many row in first matrics A : 2
Enter how many column in first matrics A : 2
1
4
3
0
Enter how many row in second matrics B : 2
Enter how many column in second matrics B : 2
1
3
9
8
Output :-
The sum of A & B is :
2 7
12 8
The multiplication of A & B is :
37 35
3 9
Enter how many column in first matrics A : 2
1
4
3
0
Enter how many row in second matrics B : 2
Enter how many column in second matrics B : 2
1
3
9
8
Output :-
The sum of A & B is :
2 7
12 8
The multiplication of A & B is :
37 35
3 9
Write a program that multiplies two matrices.
Enter how many row in first matrics A : 2
Enter how many column in first matrics A : 2
1
4
3
0
Enter how many row in second matrics B : 2
Enter how many column in second matrics B : 2
1
3
9
8
Output :-
The multiplication of A & B is :
37 35
3 9
Enter how many column in first matrics A : 2
1
4
3
0
Enter how many row in second matrics B : 2
Enter how many column in second matrics B : 2
1
3
9
8
Output :-
The multiplication of A & B is :
37 35
3 9
Write a program that adds two matrices.
Enter how many row in first matrics A : 1
Enter how many column in first matrics A : 1
5
Enter how many row in second matrics B : 2
Enter how many column in second matrics B : 2
3
5
7
8
Output :-
The sum of A & B is :
8
//////////////////////////////////////////////////////////////////////////
Enter how many row in first matrics A : 2
Enter how many column in first matrics A : 2
7
0
1
3
Enter how many row in second matrics B : 2
Enter how many column in second matrics B : 2
3
5
7
8
Output :-
The sum of A & B is :
10 5
8 11
Enter how many column in first matrics A : 1
5
Enter how many row in second matrics B : 2
Enter how many column in second matrics B : 2
3
5
7
8
Output :-
The sum of A & B is :
8
//////////////////////////////////////////////////////////////////////////
Enter how many row in first matrics A : 2
Enter how many column in first matrics A : 2
7
0
1
3
Enter how many row in second matrics B : 2
Enter how many column in second matrics B : 2
3
5
7
8
Output :-
The sum of A & B is :
10 5
8 11
Write a program that read & display matrices.
Input :
Enter how many row : 2
Enter how many column : 3
2
3
5
6
8
0
Output :-
2 3 5
6 8 0
Input :
Enter how many row : 3
Enter how many column : 3
2
3
5
6
8
0
7
1
3
Output :-
2 3 5
6 8 0
7 1 3
Enter how many row : 2
Enter how many column : 3
2
3
5
6
8
0
Output :-
2 3 5
6 8 0
Input :
Enter how many row : 3
Enter how many column : 3
2
3
5
6
8
0
7
1
3
Output :-
2 3 5
6 8 0
7 1 3
Write a program that display Pascal pyramid. 1 2 1 3 3 1 4 6 4 1 5 10 10 5 1
Input :
Enter how many line : 5
Output :-
1
2 1
3 3 1
4 6 4 1
5 10 10 5 1
Enter how many line : 5
Output :-
1
2 1
3 3 1
4 6 4 1
5 10 10 5 1
Write a program that reads any decimal number & equivalent binary number.
Input :
Enter any decimal numbers : 5
Output :-Equivalent binary number is : 101
Input :
Enter any decimal numbers : 167
Output :-Equivalent binary number is : 10100111
Enter any decimal numbers : 5
Output :-Equivalent binary number is : 101
Input :
Enter any decimal numbers : 167
Output :-Equivalent binary number is : 10100111
Subscribe to:
Posts (Atom)