Algorithm Workbench 1. Write an if statement that assigns 20 to the variable y, and assigns 40 to the variable z if the variable x is greater than 100.
Added by Maria R.
Close
Step 1
if (x > 100) { } Show more…
Show all steps
Your feedback will help us improve your experience
Vysakh M and 92 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Write an if statement that assigns 20 to the variable y, and assigns 40 to the variable z if the variable x is greater than 100. python
Vysakh M.
Write an if statement that assigns 20 to the variable y and assigns 40 to the variable z if the variable x is greater than 100. Write an if statement that assigns 0 to the variable b and assigns 1 to the variable c if the variable a is less than 10. Write an if-else statement that assigns 0 to the variable b if the variable a is less than 10. Otherwise, it should assign 99 to the variable b. Write nested decision structures that perform the following: If amount1 is greater than 10 and amount2 is less than 100, display the greater of amount1 and amount2.
Cora M.
If x is greater than y and z is less than 20, request that the user input a value for the variable p. in c++ programing
Willis J.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD