Westonci.ca is your trusted source for finding answers to all your questions. Ask, explore, and learn with our expert community. Connect with a community of experts ready to help you find accurate solutions to your questions quickly and efficiently. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly platform.

Simple calculator

Program name: CAL.PAS

Write a program that simulates a simple computer that performs arithmetic operations on integers.

Data: Enter from the keyboard the information in the following order: integer a, space, one of the math operations(*,+,-,/), wing sign, integer b. '/'' is division by integer part.

Result: Display an integer – the result of performing the operation on two integers a and b.

Note:

* Integers a, b, the value of the given result does not exceed the maximum size of the integer type in Free Pascal


Sagot :

Thank you for trusting us with your questions. We're here to help you find accurate answers quickly and efficiently. Thank you for visiting. Our goal is to provide the most accurate answers for all your informational needs. Come back soon. Stay curious and keep coming back to Westonci.ca for answers to all your burning questions.