Type the program and run it.
What is the output of this program?


CLS
READ num1
num2 = ABS(num1)
PRINT num2
END
DATA 12
What is the output of this program?


CLS
READ num1
num2 = ABS(num1)
PRINT num2
END
DATA – 4
What does ABS function do?
What is the output of this program?


CLS
READ num
PRINT SQR(num)
END
DATA 9
What does SQR function do?
Write the output of this program.


CLS
READ num
PRINT FIX(num)
END
DATA 7
Write the output of this program.


CLS
READ num
PRINT FIX(num)
END
DATA – 16
What does FIX function do?
Write the output of this program.


CLS
READ num
PRINT FIX(num)
END
DATA 7.3
Write the output of this program.


CLS
READ num
PRINT FIX(num)
END
DATA 7.9
What does FIX function do?
Write the output of this program.


CLS
READ num
PRINT FIX(num)
END
DATA – 7.9
What does FIX function do?
Write the output of this program.


CLS
READ num
PRINT INT(num)
END
DATA 5.3
What does INT function do?
Write the output of this program.


CLS
READ num
PRINT INT(num)
END
DATA – 23.12
What does INT function do?

Functions activity