Write a Swift program that prompts two numbers from the user and then performs basic arithmetic operations as shown in the example output
What is the first number?
5
What is the second number?
5
5 + 5 = 10
5 - 5 = 0
5 * 5 = 25
5 / 5 = 1
Write a Swift program that receives seconds from the user and then converts them to minutes
please insert the seconds
60
60 seconds is 1 minute
Write a Swift program that prompts two numbers from the user (Width and Height of a rectangle), then calculate the area of the rectangle
please enter the height of the rectangle:
10
please enter the width of the rectangle:
10
The calculated area of the rectangle is: 100
Write a Swift program that prints the following sentences:
If the user's is older or equal to 18 years old
"You can get a driver's license"
If the user's age is under 18 years old
"Sorry, you can't get a driver's license"
7th Aug 2022 10:00 AM