RosettaCodeData/Task/Arithmetic-Integer/DCL/arithmetic-integer.dcl

9 lines
275 B
Text
Raw Permalink Normal View History

2015-11-18 06:14:39 +00:00
$ inquire a "Enter first number"
$ a = f$integer( a )
$ inquire b "Enter second number"
$ b = f$integer( b )
$ write sys$output "a + b = ", a + b
$ write sys$output "a - b = ", a - b
$ write sys$output "a * b = ", a * b
$ write sys$output "a / b = ", a / b ! truncates down