Last active
April 25, 2017 20:55
-
-
Save zrhans/1b6c98e92e6e2116df1ce5a99edce4b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program op_aritmetica | |
! Este programa efetua um cálculo aritmético | |
! | |
implicit none | |
! declaração de variáveis | |
integer :: a, b, c | |
! atribuindo valores | |
a = 5 | |
b = 3 | |
! Exponenciação | |
c = a ** b | |
! Mostrando o resultado | |
print *, "c = ", c | |
! Multiplicação | |
c = a * b | |
! resultado | |
print *, "c = ", c | |
! Divisão | |
c = a / b | |
! resultado | |
print *, "c = ", c | |
! Adição | |
c = a + b | |
! resultado | |
print *, "c = ", c | |
! Subtracão | |
c = a - b | |
! resultado | |
print *, "c = ", c | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment