Question: the given values are a = 5, b = 5, num = 5 Your script should behave as follows: 1. If is divisible (leaves remainder

 the given values are a = 5, b = 5, num

the given values are a = 5, b = 5, num = 5

Your script should behave as follows: 1. If is divisible (leaves remainder ) by only , print 'a'. 2. If is divisible by only , print 'b'. 3. If is divisible by both and , print 'ab'. 4. If neither of the above statements hold true, print 'none'. Preconditions (something you can assume is true): a, b, and num are all positive integers greater than or equal to one

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!