Assignment 17 — simple conditional analysis
Due Tuesday, October 12
Program do_u_relate.py
- Produce a program that prompts for two integers and reports the relationship between them. There should be no other output.
- If the first input is less than the second input, display exactly the string
'less than'
and nothing else.
- If the first input is equal to the second input, display exactly the string
'equal to'
and nothing else.
- If the first input is greater than the second input, display exactly the string
'greater than'
and nothing else.
- Some possible program runs
Enter two numbers: 0 0equal to
Enter two numbers: 3 -7greater than
Enter two numbers: 31 122less than
🦆 © 2022 Jim Cohoon | Resources from previous semesters are available. |