September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
12
Task/Arithmetic-Integer/Smart-BASIC/arithmetic-integer.smart
Normal file
12
Task/Arithmetic-Integer/Smart-BASIC/arithmetic-integer.smart
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
INPUT "Enter first number.":first
|
||||
INPUT "Enter second number.":second
|
||||
PRINT "The sum of";first;"and";second;"is ";first+second&"."
|
||||
PRINT "The difference between";first;"and";second;"is ";ABS(first-second)&"."
|
||||
PRINT "The product of";first;"and";second;"is ";first*second&"."
|
||||
IF second THEN
|
||||
PRINT "The integer quotient of";first;"and";second;"is ";INTEG(first/second)&"."
|
||||
ELSE
|
||||
PRINT "Division by zero not cool."
|
||||
ENDIF
|
||||
PRINT "The remainder being...";first%second&"."
|
||||
PRINT STR$(first);"raised to the power of";second;"is ";first^second&"."
|
||||
Loading…
Add table
Add a link
Reference in a new issue