Question: You are using two numbers, N l and N 2 ( where N 1 is greater than N 2 ) in an algorithm, Algol. The

You are using two numbers, Nl and N2(where N1 is greater than N2) in an algorithm, Algol. The Algol uses a loop which runs from I=1 to N2. Inside the loop, a condition, if(N1%I=0 & & N2%i=0) is checked, and if found true, then I is assigned in
(A)To find factorial of N1 or N2, whichever is bigger
(B) To find GCD of N1 and N2
(C) To find whether, N2 is odd number or even number.
(D) To find whether, N2 is prime number or not.
 You are using two numbers, Nl and N2(where N1 is greater

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!