Skip to content

Instantly share code, notes, and snippets.

@zrhans
Created April 9, 2015 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zrhans/3053eb749d72ffb81a58 to your computer and use it in GitHub Desktop.
Save zrhans/3053eb749d72ffb81a58 to your computer and use it in GitHub Desktop.
program discriminante
real a, b, c, delta
print*, 'Programa de calculo do Discriminante'
print*, 'a='
read*, a
print*, 'b='
read*, b
print*, 'c='
read*, c
if (a .ne. 0) then
delta = b ** 2 - 4 * a * c
print *, 'delta =', delta
else
print *, ' a equação é linear '
end if
stop 'Fim programa disciminante'
end program
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment