Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 734 Bytes

File metadata and controls

23 lines (14 loc) · 734 Bytes

Arithmetic Operators

Objectives

Note: every number printed in this exercise should originate from a variable and not hardcoded as part of the print statement

Println("Packages: 100") // Wrong
Println("Packages:", numOfPackages) // Right

You are delivering packages to customers. You have 100 packages to deliver.

  1. Print the number of package you are going to deliver For example: "I have 100 packages to deliver"

  2. You have delivered 20 packages. Print the remaining packages to deliver

  3. The packages are going to be distributed equally between 4 customers. Print how many packages each customer receives (while mentioning the number of customers)

Solution

Click here to view the solution