Question: larr PROGRAMMING FOUNDATIONS COURSE EXAM INSTRUCTIONS Description ( 1 ) Submissions EASY Easy In Progress Helpful [ John is a student who recently learned about
larr PROGRAMMING FOUNDATIONS COURSE EXAM
INSTRUCTIONS
Description
Submissions
EASY
Easy In Progress
Helpful
John is a student who recently learned about factors in his math
class.
His teacher gave him a number and asked him to find the
smallest factor of that is present within the range of to
inclusive
Help John solve this problem.
Given three numbers and write a program that
reads and and prints the smallest factor of that
is present within the range of to inclusive If no factor is
found within the given range, print
Input
The first line of input contains a single integer representing the
given number.
The second line of input contains two spaceseparated integers
representing the range and
Output
The output should be a single line containing the smallest factor of
in given range.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
