Question: Given two numbers X and Y = y _ ( 3 ) * 1 0 ^ ( 3 ) + y _ ( 2 )
Given two numbers X and Y y y y y the product P y X can be expressed as P y X y X y X y X
Which of the following algorithms compute P Mark all that apply.
a
A ; B X;
for i in to loop
A A yiB;
B B;
end loop;
P A;
b
P ; A X;
for i in to loop
P P yiA;
A A;
end loop;
P P yA;
c
A X;
for i in to loop
P P yiA;
A A;
end loop;
P P yA;
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
