Embed presentation
Download to read offline
![Write an application that ask the user to enter 2 integers, obtains them
from the user and prints their sum, product, difference and quotient (division). Use the
techniques shown in Figure 2.7.
Write an application that reads 2 integers, determines whether the first is a
multiple of the second and prints the result. [Hint: Use the remainder operator.] g. 2.7 Addition
program that inputs two numbers then displays their sum. (Part
Fig. 2.7 | Addition program that inputs two numbers then displays their sum. (Part 2 of 2.)](https://image.slidesharecdn.com/writeanapplicationthatasktheusertoenter2integersobtains-230331083710-ba9024b0/75/Write-an-application-that-ask-the-user-to-enter-2-integers-obtains-pdf-1-2048.jpg)
The document provides instructions to create an application that prompts the user to enter two integers and then calculates their sum, product, difference, and quotient. Additionally, it includes functionality to determine if the first integer is a multiple of the second using the remainder operator. Example techniques from figure 2.7 are referenced for implementation guidance.
![Write an application that ask the user to enter 2 integers, obtains them
from the user and prints their sum, product, difference and quotient (division). Use the
techniques shown in Figure 2.7.
Write an application that reads 2 integers, determines whether the first is a
multiple of the second and prints the result. [Hint: Use the remainder operator.] g. 2.7 Addition
program that inputs two numbers then displays their sum. (Part
Fig. 2.7 | Addition program that inputs two numbers then displays their sum. (Part 2 of 2.)](https://image.slidesharecdn.com/writeanapplicationthatasktheusertoenter2integersobtains-230331083710-ba9024b0/75/Write-an-application-that-ask-the-user-to-enter-2-integers-obtains-pdf-1-2048.jpg)