Write an algorithm to find the ERG character for a given employee's ERP
write a python program to replicate this for the n*n matrix
expected output:
enter the matrix and no of tasks: 3 2
intial matrix ([0 0 0] [0 0 0] [0 0 0])
task1: row and column 2 2
[[0 1 0] [1 1 1] [0 1 0]]
['0,0', '0,2', '2,0','2,2'] count 4
task2: row and column 1 1
[[1 1 1] [1 1 1] [1 1 0]]
['2,2'] count:1
Ans:['4','1']
Shaded Diamond
Given an integer value
The first line of input is an integer
In the given example
N = 5. Therefore, the output should be
*
* *
* * *
* * * *
* * * * *
* *
* *
* *
*
Sample Input 1
6
Sample Output 1
*
* *
* * *
* * * *
* * * * *
* * * * * *
* *
* *
* *
* *
*
Sample Input 2
5
Sample
Armstrong numbers between two intervals
Write a program to print all the Armstrong numbers in the given range
The first line has an integer
Print all Armstrong numbers separated by a space.
If there are no Armstrong numbers in the given range, print -1.
For
A = 150 and B = 200For example, if we take number 153, the sum of the cube of digits
1, 5, 3 is 13 + 53 + 33 = 153.
So, the output should be
153.
Sample Input 1
150
200
Sample Output 1
153
Sample Input 2
1
3
Sample Output 2
1 2 3