Advertisement
_LoneWanderer_

NUMEROS IMPARES :)

Apr 18th, 2024
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | Source Code | 0 0
  1. algoritmo "IMPARES MAIORES E MENORES"
  2. var
  3.    x : inteiro
  4. inicio
  5.  
  6.    Escreval ("digite um numero IMPAR")
  7.    leia (x)
  8.    se x%2=0 entao
  9.       escreval ("NUMERO INVALIDO!!")
  10.    fimse
  11.  
  12.  
  13.    se x%2=1 entao
  14.       para x de 1 ate 105 passo 2 faca
  15.          escreva (x)
  16.       fimpara
  17.    fimse
  18.  
  19.  
  20. fimalgoritmo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement