Monday, September 14, 2009

FLowcharting Problem Given to Class Del PIlar

Given to numbers x and y, draw a flowchart to determine the difference between x and y. If x-y is negative, compute R=x+y; if x-y is zero, compute R=2x+2y; and if x-y is positive, compute R=x*y. Print the values of x,y, and R.

Answer (click the image to enlarge).

Labels:

0 Comments:

Post a Comment

<< Home