Summary FIN 300 JavaInteger dollars is read from input. Write multiple if statements:ï‚·If dollars
FIN 300 JavaInteger dollars is read from input. Write multiple if statements:ï‚·If dollars FIN 300 JavaInteger dollars is read from input. Write multiple if statements:ï‚·If dollars is greater than or equal to 6, then output "Buy a keychain."ï‚·If dollars is greater than or equal to 10, then output "Buy a hat."ï‚·If dollars is less than 1, then output "Save money."End each output with a newline. Ex 1: If the input is 7, then the output is: Buy a keychain.
Document information
- Uploaded on
- May 5, 2024
- Number of pages
- 3
- Written in
- 2023/2024
- Type
- Summary