Question: This project will familiarize the student with simple input / output , implementation of arithmetic and logical formulas in code, data types and casting danger.

This project will familiarize the student with simple input/output, implementation of arithmetic and logical formulas in code, data types and casting danger.
(Mandatory) Write a program that asks for and accepts two integers as input. The program should then calculate and display the following:
the sum of the two integers
the 1st integer minus the 2nd
the 2nd integer minus the 1st
the product of the two integers
the 1st integer divided by the 2nd(careful here!)
the 2nd integer divided by the 1st(careful here, too!)
the 1st integer modulo the 2nd
, the 2nd integer modulo the 1st
whether or not the integers are equal and if they re not...
-... which one is greater.
 This project will familiarize the student with simple input/output, implementation of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!