Ask a New Question

Asked by kY

Step 1: read in the values of X and Y.
Step 2: subtract Y from X.
Step 3. If the difference between the X and Y
is negative, compute R=X+Y; if zero, compute
r=2x+2y; and if positive, compute R=X*Y.
3 years ago

Answers

Answered by oobleck
read x,y
z = x-y
v = (x<y) ? x+y : (x>y) ? x*y : 2x+2y
3 years ago
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions

1. Which first step should readers take when they encounter an unfamiliar word? (1 point) Find a... Step 2 worksheet: Read the following prompts and then decide what the topic of each is. Bl... Step 1: Read the following information about Pierce v. Society of Sisters (1925). Case Background... Step 1 - Read the three poems below (Hay for the Horses, The Changing Light, Writ on the Eve of My... Step 3: Read the section below for the case study’s instructions and guidelines This case study aim... Step 1: Read about the clinical definitions of "weight" There are two parts to this discussion.... Step 1: Read the information about the two towns. Littletown Littletown is a small, rural town. It i... Read the step below, and think about how it can be made clearer. The Japanese Tea Ceremony should... Step 1: Read the following: “The Earth is Not for Sale: The Debate Over Globalization - A Re...
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use