You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
villares edited this page May 24, 2020
·
4 revisions
Nome
/ (divisão)
Exemplos
int g =50/5; // Atribui 10 à "g"int h = g /5; // Atribui 2 a "h"
Descrição
Divide o valor do primeiro parâmetro pelo
valor do segundo parâmetro. A expressão 20 / 4
queivale a 5. O número 20 é a some de 4 números 5.
Como equação, v6e-se que 4 + 4 + 4 + 4 + 4 = 20.
Sintaxe
valor1 / valor2
Parâmetros
valor1
int or float
valor2
int or float, but not zero (it is not possible divide by zero)