IDNLearn.com provides a platform for sharing and gaining valuable knowledge. Get timely and accurate answers to your questions from our dedicated community of experts who are here to help you.
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 using this platform to share and learn. Don't hesitate to keep asking and answering. We value every contribution you make. Thank you for visiting IDNLearn.com. We’re here to provide accurate and reliable answers, so visit us again soon.