University of Iowa Computer Science Department

Quiz 04

1. Using a Console application, prompt the user for an age and print "You're old" if the age is greater than 65 else print "Have a long life!".

2. Generate a random number between 1 and 10, inclusive. If the number is 5 or 6, print the message "You win" on the console.
UI CLAS CRA ACM Valid CSS! Valid XHTML 1.0 Transitional Level Double-A conformance icon, W3C-WAI Web Content Accessibility Guidelines 1.0 Cynthia tested
| Modified: .