Questions: 5 831

Answers by our Experts: 5 728

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

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.


Input

The first line of input is an integer

M. The second line of input is an integer N.


Explanation

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


Input

The first line of input is an integer N.



Output

The output should be an integer representing the number of positive integers satisfying the above condition.


Explanation

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

M rows and N columns using the characters as shown below.Input

The first line of input is an integer

M. The second line of input is an integer N.Explanation

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.



In Python learning we are having space ..for that what should do we need to add

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


LATEST TUTORIALS
APPROVED BY CLIENTS