Question: INSTRUCTIONS Description Submissions EASY In Progress Easy John is a student who recently learned about factors in his math class. His teacher gave him a

INSTRUCTIONS
Description
Submissions
EASY
In Progress Easy
John is a student who recently learned about factors in his math class.
His teacher gave him a number K and asked him to find the smallest factor of K that is present within the range of M to N(inclusive).
Help John solve this problem.
Given three numbers K,M and N, write a program that reads K.M and N and prints the smallest factor of 'K' that is present within the range of 'M' to N'(inclusive). If no factor is found within the given range, print =-1 :
Input
The first tre of input contains a single integer representing K the gven number,
The second tine of input contains two space-separated integers representing the range M and N
Output
Custoi
 INSTRUCTIONS Description Submissions EASY In Progress Easy John is a student

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!