IDNLearn.com: Where curiosity meets clarity and questions find their answers. Explore thousands of verified answers from experts and find the solutions you need, no matter the topic.
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 :
We value your participation in this forum. Keep exploring, asking questions, and sharing your insights with the community. Together, we can find the best solutions. Your search for answers ends at IDNLearn.com. Thank you for visiting, and we hope to assist you again soon.