Given an integer number M, N as input. Write a program to print a striped rectangular pattern of M rows and N columns using (+ and -) character.
The first line of input is an integer M.
The second line of input is an integer N.
In the given example the striped rectangular pattern of
7 rows and 5 columns. Therefore, the output should be
+ + + + +
- - - - -
+ + + + +
- - - - -
+ + + + +
- - - - -
+ + + + +
Write a program to print a rectangle pattern of M rows and N columns using the characters as shown below.
The first line of input is an integer
M. The second line of input is an integer N.
In the given example,
3 rows and 10 columns. Therefore, the output should be
+----------+
| |
| |
| |
+--------- +
You are given a positive integer N. Your task is to find the number of positive integers K <= N such that K is not divisible by any of the following numbers 2, 3, 4, 5, 6, 7, 8, 9, 10
The first line of input is an integer N.
The output should be an integer representing the number of positive integers satisfying the above condition.
In the given example,
11 is not divisible by any number from 2 to 10. It is divisible by only 1, 11.So, the output should be 2.
Sample Input : 12
Sample output: 2
Sample Input: 200
Sample output: 47
Sample Input : 10
Sample output: 1
Write a program to print a rectangle pattern of
The first line of input is an integer
In the given example,
3 rows and 10 columns.
Write a program to print a rectangle pattern of M rows and N columns using the characters as shown below.
In the given example,
3 rows and 10 columns.Therefore, the output should be
+----------+
| |
| |
| |
+----------+
QI: write a full python program to process the orders of a Fashion
shop, the order contains the following information:
1- Name of the person who request an order.
2-Phone number of the person who requested the order.
3- Name of the order
4- Is the order delivery or collect from the fashion shop?
Note: the orders are served according to arrival of the order.
Write a program to replace elements with zeros
Write a program to mix the words based on their index locations
Write a program k sum unique combinations