Question: A loop should output 1 to n . If n is 5 , the output is 1 2 3 4 5 . What should XXX
A loop should output to n If n is the output is What should XXX YYY and ZZZ be
Flowchart has variables integer n integer i and nodes. Node is the start node and points to node Node code: n Get next input Node points to node Node code: XXX Node points to node Node code: while YYY Node points to nodes condition is true and condition is false Node code: Put ZZZ to output Node points to node Node code: i i Node points to node Node is the end node.
a
XXX: i YYY: i n ZZZ: i
b
XXX: i YYY: i n ZZZ: i
c
XXX: i YYY: i n ZZZ: i
d
XXX: i YYY: i n ZZZ: i
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
