- 19

- 7

Hi, I am trying to run this program and I am having a warning:

"warning 298 - value X has been used without being given an initial value"

Here is my code:

"warning 298 - value X has been used without being given an initial value"

Here is my code:

**[moderator: code tags added]**
Fortran:

```
real :: x
real :: arcsin
complex :: I = ( 0.0 , 1.0 )
print *, ' Enter the value of x '
if ( abs ( x ) >= 1 ) then
arcsin = -I * log ( I * x + I sqrt ( x ** 2 -1 ))
else
arcsin = ASIN ( x )
read *, arcsin
end if
print *, ' Result is: ' , x
end program
```

Last edited by a moderator: