start Get positive integer from user, call it A. Get positive integer from user, call it B. C = A B = A true false B > 1? D = C E = A D> 0? B = B-1 false true Display the A = A + E value of A. D = D - 1 end

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter6: Looping
Section: Chapter Questions
Problem 4PE
icon
Related questions
Question

If both A and B are positive integers, which of the following is an equivalent result to the flowchart?

  1. A * B
  2. A ** B
  3. A * A
  4. A ** A
  5. none of the above
start
Get positive integer
from user, call it A.
Get positive integer
from user, call it B.
C = A
B = A
true
false
B > 1?
D = C
E = A
D> 0?
B = B-1
false
true
Display the
value of A.
A = A + E
D = D - 1
end
Transcribed Image Text:start Get positive integer from user, call it A. Get positive integer from user, call it B. C = A B = A true false B > 1? D = C E = A D> 0? B = B-1 false true Display the value of A. A = A + E D = D - 1 end
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Files and Directory
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,