i have a a little problem in fortan90 i just wanted to know how to input a complex number ( input real and img part alone ) all i want to do is to make a simple program about DeMoivres Theorem i have been around in google(adsbygoogle = window.adsbygoogle || []).push({});

all i know how to declare a argument as complex

complex a

then how to let the user input the real and img part for argument a

i did read(*,*)a

every time it give runtime error :)

thanks in advance

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Fortran Complex number in fortran 90

**Physics Forums | Science Articles, Homework Help, Discussion**