Hi guys! How to convert a expression with IF to only math?
I mean, how to transform the "if" in this following expression in a mathematical expression?
Thank you in advanced!
PROGRAM if_in_math
IMPLICIT none
INTEGER :: num
PRINT *, "Type a number"
READ *, num
IF(num.GE.0)THEN
PRINT *, num
END IF
END PROGRAM
I mean, how to transform the "if" in this following expression in a mathematical expression?
Thank you in advanced!
PROGRAM if_in_math
IMPLICIT none
INTEGER :: num
PRINT *, "Type a number"
READ *, num
IF(num.GE.0)THEN
PRINT *, num
END IF
END PROGRAM