1
I created this program to calculate the BMI, but it doesn’t run completely. He asks to enter with weight and height, but returns no result.
Could someone tell me what’s wrong?
PROGRAM Calc
IMPLICIT NONE
REAL :: peso, altura, mmc
write(*,*) "Valor do peso = ? "
read(*,*) peso
write(*,*) "Valor do altura = ? "
read(*,*) altura
mmc = (peso/altura)
write (*,*) mmc
STOP
END PROGRAM Calc
After I enter the 2 input values, it does not print the result on the screen, simply closes the terminal
– Emilio Junior
Which language and compiler is using ?
– viniciusxyz
Force 2.0 Fortran 90
– Emilio Junior