Created
April 17, 2014 03:36
-
-
Save samueltcsantos/10951192 to your computer and use it in GitHub Desktop.
Operadores Aritméticos
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
algoritmo "operadores" | |
// Função : operadores aritmeticos | |
// Autor : samuel t. c. santos | |
// Data : 16/04/2014 | |
// Seção de Declarações | |
var | |
a : inteiro | |
b : inteiro | |
c : inteiro | |
d : real | |
inicio | |
// Seção de Comandos | |
//operadores aritmeticos | |
a <- 10 | |
b <- 5 | |
//soma | |
c <- a + b | |
//subtracao | |
c <- a - b; | |
//divisao inteira | |
d <- c / a | |
//modulo | |
a <- 8 MOD 3 | |
a <- 8 % 3 | |
//multiplicacao | |
a <- 2 * 6 | |
//potencia 2^4 | |
d <- 2^4 | |
fimalgoritmo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment