Advertisement
_LoneWanderer_

Divisortotal

Mar 26th, 2024
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | Source Code | 0 0
  1. algoritmo "DIVISORTOTAL"
  2. var
  3.    limite, divisor , i : inteiro
  4. inicio
  5.    escreval ("digite o limite superior")
  6.    leia (limite)
  7.    escreval ("digite o numero para dividir")
  8.    leia (divisor)
  9.    i <- 1
  10.    enquanto i < limite faca
  11.       se i%divisor = 0 entao
  12.          escreval (i,  " é divisivel por ", divisor)
  13.       fimse
  14.       i <- i + 1
  15.    fimenquanto
  16. fimalgoritmo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement