daily pastebin goal
10%
SHARE
TWEET

4_13

a guest Aug 26th, 2018 154 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. algoritmo "4_13"
  2.       declare n, aux, auxr, i, t:inteiro;
  3.       i <- 1000;
  4.       enquanto (i <= 9999) faca
  5.                aux <- i/100;
  6.                auxr <- resto(i, 100);
  7.                t <- aux+auxr;
  8.                se ((potencia(t, 2))==i) entao
  9.                   escreval("O número:", i, " possui a força.");
  10.                fimse
  11.                i <- i + 1;
  12.       fimenquanto
  13. fimalgoritmo
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top