Hello, I’m getting wrong answer in this problem: http://www.spoj.com/problems/DADINHOS/
It is a very simple code and I do not understand where is my error.
Here is my code, I’m using FORTRAN95:
program DADINHO
INTEGER :: x, y, z, ans
DO
READ(*,*) x, y, z
IF (x==0) THEN
stop
ELSE
ans = x*y*z
write(*,*) ans
END IF
END DO
end