Skip to content

Create Variables-and-Types5#13

Open
Apo-Matchbox wants to merge 1 commit intomainfrom
Create-Variables-and-Types5
Open

Create Variables-and-Types5#13
Apo-Matchbox wants to merge 1 commit intomainfrom
Create-Variables-and-Types5

Conversation

@Apo-Matchbox
Copy link
Owner

Question 4:
Write a program that reads from the user two positive integers, and prints the result of when we add, subtract multiply, divide, div and mod them.
Your program should interact with the user exactly as it shows in the following example:
Please enter two positive integers, separated by a space:
14 4
14 + 4 = 18
14 – 4 = 10
14 * 4 = 56
14 / 4 = 3.5
14 div 4 = 3
14 mod 4 = 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant