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.
-
Print the number of package you are going to deliver For example: "I have 100 packages to deliver"
-
You have delivered 20 packages. Print the remaining packages to deliver
-
The packages are going to be distributed equally between 4 customers. Print how many packages each customer receives (while mentioning the number of customers)
Click here to view the solution