‣ Inputs: Two unknown numbers <num1>, <num2>
‣ Output: num1 or num2, whichever is greater
Diamond
Given an integer value
The first line of input is an integer
In the given example, the number of rows in the diamond is
5.So, the output should be
....0....
...000...
..00000..
.0000000.
000000000
.0000000.
..00000..
...000...
....0....
Digit 9
You are given
The first line of input is an integer
In the given example,
N = 4.So, the output should be
* * * *
* *
* *
* * * *
*
*
* * * *
Sample Input 1
4
Sample Output 1
* * * *
* *
* *
* * * *
*
*
* * * *
Sample Input 2
5
Sample Output 2
* * * * *
* *
* *
* *
* * * * *
*
*
*
* * * * *
for this inputs
5
0 -2
3 6
4 7
1 -3
2 -1
5
0 1
1 2
2 -4
3 3
4 5
expected output is
12x^4 + 9x^3 - 5x^2 - x - 1but output is
12x^4 + 9x^3 - 5x^2 - 1x - 1for question #206080
Q3. A customer getting offers from different banks for deposit amount. From SBI customer is getting offer for 7.5 rate of interest , from PNB Bank getting offer for 8.5 rate of interest and from OBC Bank getting offer 9.5 rate of interest. Create an application where you have to create one base class named "ReserveBank" which has given instructions to all bank to give some rate of interest in deposit amount. Find out the amount after applying rate of interest from all these banks.
write a program to get given output for the given input.
input:[[1,2,3],[2],[3,4],[1,2,5,6],[5,7,8]]
output:[1,2,3,4,5,6,7,8]
in python.