How can I write a read statment that if the user hits enter without entering a new value it will use a defalt value. Here is basically what I think it should be but it does not work. I know it can be done because my Prof. is requiring it on a project.
default = 5.
WRITE(*,*)"enter angle of attack"
READ(*,*) attack
IF(attack ==" ")THEN
AOA == defalt
ELSE
AOA = attack
END IF
Thanks in advance
Travis
default = 5.
WRITE(*,*)"enter angle of attack"
READ(*,*) attack
IF(attack ==" ")THEN
AOA == defalt
ELSE
AOA = attack
END IF
Thanks in advance
Travis