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

Product of Numbers from M to N

Given two integers

M, N. Write a program to print the product of numbers in the range M and N (inclusive of M and N).Input

The first line of input is an integer

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

In the given example, the product of numbers between the range

2 and 5 is 2 * 3 * 4 * 5. Therefore, the output should be 120.


Write a program to find the minimum number of notes required for the amount

M. Available note denominations are 500, 50, 10, 1.Input

The first line is a single integer

M.Output

Print

M in denominaitons.Explanation

Given

M = 1543, it can be written as1543 = 3*(500) + 3*(50) + 0*(10) + 1*(3)Then the output should be

500: 3 50: 0 10: 4 1: 3


Uncommon Number

Given a number

N, find whether the number is common or uncommon. A number is considered uncommon if it is not divisible by any of the single-digit primes.Input

The first line of input is an integer

N.Output

The output should be a single line containing

True if it satisfies the given conditions, False in all other cases.Explanation

In the given example,

N = 5633 the number is not divisible by 2, 3, 5, 7. So, the number is an uncommon number.Therefore, the output should be

True.


Hollow Right Triangle - 2

Given an integer number

N as input. Write a program to print the hollow right-angled triangular pattern of N lines as shown below.Note: There is a space after each asterisk (*) character.Input

The first line of input is an integer

N.Explanation

In the given example the hollow right angled triangle of side

5. Therefore, the output should be

*

* *

* *

* *

* * * * *


Sample Input 1

4

Sample Output 1

*

* *

* *

* * * *

Sample Input 2

5

Sample Output 2

*

* *

* *

* *

* * * * *




Eligibility Criteria - 4


This Program name is Eligibility Criteria - 4. Write a Python program to Eligibility Criteria - 4, it has two test cases


The below link contains Eligibility Criteria - 4 question, explanation and test cases


https://drive.google.com/file/d/1BXdR9DFZDOCHR0pCuEYhrnK_H98soAWI/view?usp=sharing


We need exact output when the code was run

Eligibility Criteria - 3


This Program name is Eligibility Criteria - 3. Write a Python program to Eligibility Criteria - 2, it has two test cases


The below link contains Eligibility Criteria - 3 question, explanation and test cases


https://drive.google.com/file/d/1yiA-NxCpGk5uTvtilgzcNU0krAKbDIv4/view?usp=sharing


We need exact output when the code was run

Eligibility Criteria - 2


This Program name is Eligibility Criteria - 2. Write a Python program to Eligibility Criteria - 2, it has two test cases


The below link contains Eligibility Criteria - 2 question, explanation and test cases


https://drive.google.com/file/d/1xObf_3zdyEfD8yEtB5V4OqL6HVzEd7h1/view?usp=sharing


We need exact output when the code was run

Eligibility Criteria - 1


This Program name is Eligibility Criteria - 1. Write a Python program to Eligibility Criteria - 1, it has two test cases


The below link contains Eligibility Criteria - 1 question, explanation and test cases


https://drive.google.com/file/d/1Tp20Je-ZL3tEbrjEv-focZR8Rr_0DBNg/view?usp=sharing


We need exact output when the code was run

Masking - 2


This Program name is Masking - 2. Write a Python program to Masking - 2, it has two test cases


The below link contains Masking - 2 question, explanation and test cases


https://drive.google.com/file/d/1B638gu1ZK2GtvqCwmxaQkgaCBFi-qAiz/view?usp=sharing


We need exact output when the code was run

Hollow Right Triangle

Given an integer number

N as input. Write a program to print the hollow right-angled triangular pattern of N lines as shown below.Note: There is a space after each asterisk (*) character.Input

The first line of input is an integer

N.Explanation

In the given example the hollow right angled triangle of side

4. Therefore, the output should be

* * * *

* *

* *

*


Sample Input 1

4

Sample Output 1

* * * *

* *

* *

*

Sample Input 2

6

Sample Output 2

* * * * * *

* *

* *

* *

* *

*




LATEST TUTORIALS
APPROVED BY CLIENTS