Page 185 - PowerPoint Presentation
P. 185
CAVITE STATE UNIVERSITY
T3 CAMPUS
Department of Information Technology COSC 65 – Programming Languages
QUIZ NO. 5 | Hardcoding: Write a program on a piece of paper that will display the result
applying all the arithmetic operator & assignment operators.
Sample Output of the Program for Arithmetic Operators:
Hello User!
Displaying the Result applying all the Arithmetic Operations:
The Sum of the two numbers is: ___________
The Difference of the two numbers is: __________
The Product of the two numbers is: _____________
The Quotient of the two numbers is: ____________
The Remainder of the two numbers is: ____________
Displaying the Result applying all the Assignment Operations
The Sum and new value of variable ___ is: ____________
The Difference and new value of variable ___ is: ____________
The Product and new value of variable ___ is: ____________
The Quotient and new value of variable ___ is: ____________
The Remainder and new value of variable ___ is: ____________
Page | 44