<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Regson J.M. de Araujo Blog]]></title><description><![CDATA[Eu gosto de criar exercícios e desafios de programação e postar com soluções em várias linguagens. Eu também escreverei sobre matemática, educação, e assuntos v]]></description><link>https://regson.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/6ab191d633d35a228b72adc8/9e10e932-aa9b-4c1b-a192-6a61ca7ba766.jpg</url><title>Regson J.M. de Araujo Blog</title><link>https://regson.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Nov 2026 11:52:48 GMT</lastBuildDate><atom:link href="https://regson.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Code Challenge: First Pokemon]]></title><description><![CDATA[[Desafio Mestre Pokemon Iniciante] Neste desafio estamos imersos no mundo Pokemon, e hoje é o dia em que 100 mestre pokemon iniciantes receberão seu…]]></description><link>https://regson.hashnode.dev/code-challenge-first-pokemon</link><guid isPermaLink="true">https://regson.hashnode.dev/code-challenge-first-pokemon</guid><dc:creator><![CDATA[Regson Jaques]]></dc:creator><pubDate>Mon, 19 Oct 2026 18:48:55 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6ab191d633d35a228b72adc8/9a9c7214-c997-4fbb-bfb6-e201d40204c5.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>[Desafio Mestre Pokemon Iniciante] Neste desafio estamos imersos no mundo Pokemon, e hoje é o dia em que 100 mestre pokemon iniciantes receberão seu primeiro pokemon do Professor. As chances de receber cada pokémon são as seguintes:<br />33% - Charmander<br />33% - Bulbassauro<br />33% - Squitle<br />1% - Pikachu.<br />Escreva um programa que simule essa distribuição para os 100 primeiros mestre pokemon iniciantes, e no final mostre um relatório de quantos treinadores receberam cada uns dos 4 pokemons iniciais.<br />Use sua linguagem de programação favorita!<br />Poste sua solução nos comentários!</p>
<p>[EN] [Code Challenge: First Pokemon]<br />In this challenge, we are immersed in the world of Pokémon, and today is the day that 100 beginner Pokémon trainers will receive their first Pokémon from the Professor.<br />The chances of receiving each Pokémon are as follows:<br />33% - Charmander<br />33% - Bulbasaur<br />33% - Squirtle<br />1% - Pikachu<br />Write a program that simulates this distribution for the first 100 beginner Pokémon trainers, and at the end, display a report showing how many trainers received each of the four starter Pokémon.<br />Use your favorite programming language!<br />Write your solution in the comments!</p>
<hr />
<h3>A solution in Visual Basic [PT-BR]</h3>
<p><a class="embed-card" href="https://gist.github.com/tictackode/0628ef632e1d177004f337bfa10aad05">https://gist.github.com/tictackode/0628ef632e1d177004f337bfa10aad05</a></p>

<p><a href="https://gist.github.com/tictackode/0628ef632e1d177004f337bfa10aad05">https://gist.github.com/tictackode/0628ef632e1d177004f337bfa10aad05</a></p>
]]></content:encoded></item><item><title><![CDATA[Guess The Number Game]]></title><description><![CDATA[[Desafio Adivinhe o Número] Escreva um programa que gere um número aleatório entre 1 e 100 e o mantenha apenas na memória, e o usuário terá 5 chances para…]]></description><link>https://regson.hashnode.dev/guess-the-number-game</link><guid isPermaLink="true">https://regson.hashnode.dev/guess-the-number-game</guid><dc:creator><![CDATA[Regson Jaques]]></dc:creator><pubDate>Sun, 18 Oct 2026 21:10:15 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6ab191d633d35a228b72adc8/94d42f9f-24a1-498d-bf18-5e7d5248ecef.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>[Desafio Adivinhe o Número] Escreva um programa que gere um número aleatório entre 1 e 100 e o mantenha apenas na memória, e o usuário terá 5 chances para adivinhar o número e vencer o jogo. Se o palpite do jogador for menor, o programa retorna a mensagem: "Tente um número maior!". Se o palpite do jogador for maior, o programa retorna a mensagem: "Tente um número menor!". Se o jogador acertar o número com 5 chances ou menos, ele vence! Se o jogador gastar os 5 palpites em vão ele perde. Então é "Game Over". Resolva em sua linguagem favorita e poste sua solução nos comentários!</p>
<p>[Guess the Number Game] Write a program thar generates a random number between 1 and 100, and keeps it only in memory, and the user/playerwill have 7 chances to guess the number and win the game. If player's guess is lower than the CPU's number, the program returns a message: "Try a higher number!". If the player's guess is bigger than the CPU's number, the program returns a message: "Try a lower number. If the player matches the CPU's number using 5 chances or less, the player wins! If the player uses his 5 chances and don't match the number, then it's Game Over!<br />Write the game in your prefered language and post it in the comments.</p>
<hr />
<p><a class="embed-card" href="https://gist.github.com/tictackode/cb86ec1b4338f1b5bf7b6ce426899e7f">https://gist.github.com/tictackode/cb86ec1b4338f1b5bf7b6ce426899e7f</a></p>

<p><a href="https://gist.github.com/tictackode/cb86ec1b4338f1b5bf7b6ce426899e7f">https://gist.github.com/tictackode/cb86ec1b4338f1b5bf7b6ce426899e7f</a></p>
<hr />
<h3>A solution in C language</h3>
<p><a class="embed-card" href="https://gist.github.com/tictackode/981c1efa457799c3b4aea1ee7736c31b">https://gist.github.com/tictackode/981c1efa457799c3b4aea1ee7736c31b</a></p>

<p><a href="https://gist.github.com/tictackode/981c1efa457799c3b4aea1ee7736c31b">https://gist.github.com/tictackode/981c1efa457799c3b4aea1ee7736c31b</a></p>
]]></content:encoded></item><item><title><![CDATA[Code challenge: Dice Decision]]></title><description><![CDATA[[Desafio Decisão nos Dados] O Zeca e a Aninha precisam decidir quem lava a louça hoje, e eles farão isso com dados comuns de seis lados (D6). Serão 3…]]></description><link>https://regson.hashnode.dev/code-challenge-dice-decision</link><guid isPermaLink="true">https://regson.hashnode.dev/code-challenge-dice-decision</guid><dc:creator><![CDATA[Regson Jaques]]></dc:creator><pubDate>Fri, 16 Oct 2026 22:55:21 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6ab191d633d35a228b72adc8/ed1ff50d-f9d5-45b2-a678-79655c1112ca.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>[Desafio Decisão nos Dados] O Zeca e a Aninha precisam decidir quem lava a louça hoje, e eles farão isso com dados comuns de seis lados (D6). Serão 3 partidas sendo que em cada uma eles lançarão 1 dado cada um, vencendo a partida quem tirar o maior número. A disputa será no estilo "melhor de 3". Mas eles estão com um problema: eles não tem nenhum dado D6!<br />Escreva um programa que simule este confronto e simule o comportamento aleatório do dado D6. Resolva na sua linguagem preferida!</p>
<p>[EN] [Code Challenge: Dice Decision] Zack and Annie need to decide who will wash the dishes tonight, and they will make that using common dices of six sides, D6. Who gets the higher number wins the turn. The confront will be decided in 3 turns, and who loses will wash the dishes. Write a program that simulates this confront, and simulates the randomness of the dice. Use your prefered language!</p>
<h3>A Solution in C\C++</h3>
<p><a class="embed-card" href="https://gist.github.com/tictackode/8beca2043ce001844149b28bec18025b">https://gist.github.com/tictackode/8beca2043ce001844149b28bec18025b</a></p>

<p><a href="https://gist.github.com/tictackode/8beca2043ce001844149b28bec18025b">https://gist.github.com/tictackode/8beca2043ce001844149b28bec18025b</a></p>
<hr />
<h3>A Solution in Common Lisp</h3>
<p><a class="embed-card" href="https://gist.github.com/tictackode/fb637adb442e61cf839802d7fa6a306a">https://gist.github.com/tictackode/fb637adb442e61cf839802d7fa6a306a</a></p>

<p><a href="https://gist.github.com/tictackode/fb637adb442e61cf839802d7fa6a306a">https://gist.github.com/tictackode/fb637adb442e61cf839802d7fa6a306a</a></p>
<hr />
<h3>A Solution in Python</h3>
<p><a class="embed-card" href="https://gist.github.com/tictackode/e4cb36d38d6f8813c95205e7b770ba14">https://gist.github.com/tictackode/e4cb36d38d6f8813c95205e7b770ba14</a></p>

<p><a href="https://gist.github.com/tictackode/e4cb36d38d6f8813c95205e7b770ba14">https://gist.github.com/tictackode/e4cb36d38d6f8813c95205e7b770ba14</a></p>
]]></content:encoded></item><item><title><![CDATA[Code Challenge: Assault of the Darkness]]></title><description><![CDATA[[Desafio Investida das Trevas]Um mago das trevas vai atacar um vilarejo e vai invocar 50 esqueletos para atacar com ele, mas um de maior vitalidade e outro…]]></description><link>https://regson.hashnode.dev/code-challenge-assault-of-the-darkness</link><guid isPermaLink="true">https://regson.hashnode.dev/code-challenge-assault-of-the-darkness</guid><dc:creator><![CDATA[Regson Jaques]]></dc:creator><pubDate>Fri, 16 Oct 2026 17:59:36 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6ab191d633d35a228b72adc8/6421dace-317d-4b2b-926b-8f54fecd6dc0.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>[Desafio Investida das Trevas]<br />Um mago das trevas vai atacar um vilarejo e vai invocar 50 esqueletos para atacar com ele, mas um de maior vitalidade e outro de maior destreza ficarão ao seu lado para o proteger. Faça um programa que gere os 50 "esqueletos" automaticamente e aleatoriamente e indique entre os 50 os 2 que serão os guarda costas do mago das trevas.</p>
<p>[EN][Code Challenge: Assault of the Darkness] A Dark Mage will attack a village and will cast a spell to raise 50 skeletons to attack with him, but a skeleton of higher vitality and another of higher dexterity will stay by his side in order to protect him. Write the program that generates the 50 skeletons automatically and randomly and marks, among the 50, the two that will be the mage's bodyguards.</p>
<h3>A Solution in C language.</h3>
<p><a class="embed-card" href="https://gist.github.com/tictackode/9d79126ee60b9358b4cf2973e20f19ed">https://gist.github.com/tictackode/9d79126ee60b9358b4cf2973e20f19ed</a></p>

<p><a href="https://gist.github.com/tictackode/9d79126ee60b9358b4cf2973e20f19ed">https://gist.github.com/tictackode/9d79126ee60b9358b4cf2973e20f19ed</a></p>
<h3>A Solution in Python</h3>
<p><a class="embed-card" href="https://gist.github.com/tictackode/47f2146f7bb01f4a65deac2ce5c2e527">https://gist.github.com/tictackode/47f2146f7bb01f4a65deac2ce5c2e527</a></p>

<p><a href="https://gist.github.com/tictackode/47f2146f7bb01f4a65deac2ce5c2e527">https://gist.github.com/tictackode/47f2146f7bb01f4a65deac2ce5c2e527</a></p>
]]></content:encoded></item><item><title><![CDATA[Coding Challenge: Pikachu Thundershock!]]></title><description><![CDATA[[ENG] Create a code that simulates the damage of the Pikachu's thundershock attack for any level! Pass the integer number of the level by parameter to the…]]></description><link>https://regson.hashnode.dev/coding-challenge-pikachu-thundershock</link><guid isPermaLink="true">https://regson.hashnode.dev/coding-challenge-pikachu-thundershock</guid><dc:creator><![CDATA[Regson Jaques]]></dc:creator><pubDate>Wed, 07 Oct 2026 00:34:46 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6ab191d633d35a228b72adc8/76f359ad-e366-4129-844f-bafb6c8bb212.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>[ENG] Create a code that simulates the damage of the Pikachu's thundershock attack for any level! Pass the integer number of the level by parameter to the thundershock(level) function, and the function must return a message with the damage dealt. Make the damage grows as the level grows.</p>
<p>[PT-BR] Crie um código que simule o dano causado pelo ataque choque do trovão do Pikachu para qualquer nível! Passe o número inteiro referente ao nível por parâmetro para a função choque_do_trovão(nível), e a função precisa retornar uma mensagem com o dano causado. Faca o dano ser maior a medida que o nível for maior.</p>
<h3>A solution in Common Lisp</h3>
<p><a class="embed-card" href="https://gist.github.com/tictackode/6359f18946651176e17d7ab72cf331c3">https://gist.github.com/tictackode/6359f18946651176e17d7ab72cf331c3</a></p>

<p><a href="https://gist.github.com/tictackode/6359f18946651176e17d7ab72cf331c3">https://gist.github.com/tictackode/6359f18946651176e17d7ab72cf331c3</a></p>
<h3>A solution in Python</h3>
<p><a class="embed-card" href="https://gist.github.com/tictackode/fcea08fa70a9049155252481a5938a2d">https://gist.github.com/tictackode/fcea08fa70a9049155252481a5938a2d</a></p>

<p><a href="https://gist.github.com/tictackode/fcea08fa70a9049155252481a5938a2d">https://gist.github.com/tictackode/fcea08fa70a9049155252481a5938a2d</a></p>
<h3>A Solution in C language</h3>
<p><a class="embed-card" href="https://gist.github.com/tictackode/bc8eee76c61e38a2da3cc689500c8bb1">https://gist.github.com/tictackode/bc8eee76c61e38a2da3cc689500c8bb1</a></p>

<p><a href="https://gist.github.com/tictackode/bc8eee76c61e38a2da3cc689500c8bb1">https://gist.github.com/tictackode/bc8eee76c61e38a2da3cc689500c8bb1</a></p>
]]></content:encoded></item><item><title><![CDATA[Coding Challenge: Kage Bunshin No Jutsu]]></title><description><![CDATA[[PT-BR] Um ninja começou a treinar o Jutsu Clone das Sombras, seu poder era instável, e após o primeiro clone ser gerado a chance de se gerar o próximo…]]></description><link>https://regson.hashnode.dev/coding-challenge-kage-bunshin-no-jutsu</link><guid isPermaLink="true">https://regson.hashnode.dev/coding-challenge-kage-bunshin-no-jutsu</guid><dc:creator><![CDATA[Regson Jaques]]></dc:creator><pubDate>Tue, 06 Oct 2026 23:24:21 GMT</pubDate><content:encoded><![CDATA[<p>[PT-BR] Um ninja começou a treinar o Jutsu Clone das Sombras, seu poder era instável, e após o primeiro clone ser gerado a chance de se gerar o próximo clone era 1% menor, e caso houvesse falha o jutsu era encerrado. Sabendo que a chance de se gerar o primeiro clone era de 100% e que o objetivo é sempre tentar gerar o máximo de clones possíveis, crie um programa que simule este Jutsu. Use sua linguagem favorita e use números aleatórios para que em cada execução ocorra um resultado diferente.</p>
<p>[ENG] A ninja started to practice the Kage Bunshin No Jutsu, his power was instable, and after the first clone appears, the chance of create the next clone was diminished by 1%, and in case that the clone fails the jutsu simply ends. Kepping in mind that the chance of generate the first clone is 100% and that the aim is to generate the maximum number of clones, create a program that simulates this jutsu. Use you favorite programming language and use random numbers so the program will display a different result in every execution.</p>
<h3>Uma solução em Java</h3>
<p><a class="embed-card" href="https://gist.github.com/tictackode/3497382670dd963cd25a7066650b1494">https://gist.github.com/tictackode/3497382670dd963cd25a7066650b1494</a></p>

<p><a href="https://gist.github.com/tictackode/3497382670dd963cd25a7066650b1494">https://gist.github.com/tictackode/3497382670dd963cd25a7066650b1494</a></p>
<h3>A Solution in Python</h3>
<p><a class="embed-card" href="https://gist.github.com/tictackode/037736989b807e9064fc14920a20b8c0">https://gist.github.com/tictackode/037736989b807e9064fc14920a20b8c0</a></p>

<p><a href="https://gist.github.com/tictackode/037736989b807e9064fc14920a20b8c0">https://gist.github.com/tictackode/037736989b807e9064fc14920a20b8c0</a></p>
<h3>A Solution in C/C++</h3>
<p><a class="embed-card" href="https://gist.github.com/tictackode/7c57e26441c4327a7f1183a18a6e82cc">https://gist.github.com/tictackode/7c57e26441c4327a7f1183a18a6e82cc</a></p>

<p><a href="https://gist.github.com/tictackode/7c57e26441c4327a7f1183a18a6e82cc">https://gist.github.com/tictackode/7c57e26441c4327a7f1183a18a6e82cc</a></p>
]]></content:encoded></item><item><title><![CDATA[Exercício de Algoritmo: Gerador Automático de Senhas

Coding Exercise: Random Password Generator]]></title><description><![CDATA[Crie um programa, na linguagem de sua escolha, que seja um gerador automático de senhas. Poste sua solução nos comentários em uma ferramenta de cola como…]]></description><link>https://regson.hashnode.dev/exerc-cio-de-algoritmo-gerador-autom-tico-de-senhas-coding-exercise-random-password-generator</link><guid isPermaLink="true">https://regson.hashnode.dev/exerc-cio-de-algoritmo-gerador-autom-tico-de-senhas-coding-exercise-random-password-generator</guid><dc:creator><![CDATA[Regson Jaques]]></dc:creator><pubDate>Sat, 03 Oct 2026 23:36:53 GMT</pubDate><content:encoded><![CDATA[<p>Crie um programa, na linguagem de sua escolha, que seja um gerador automático de senhas. Poste sua solução nos comentários em uma ferramenta de cola como Gist ou Pastebin.<br />[Code Challenge: Password Generator] Write a program, in any programming language, that generates a random password for the user.  </p>
<h3>Uma solução em Java. A Solution in Java.</h3>
<p><a class="embed-card" href="https://gist.github.com/tictackode/cc1236e642e1e448e1a9eae397798b26">https://gist.github.com/tictackode/cc1236e642e1e448e1a9eae397798b26</a></p>

<p><a href="https://gist.github.com/tictackode/cc1236e642e1e448e1a9eae397798b26">https://gist.github.com/tictackode/cc1236e642e1e448e1a9eae397798b26</a></p>
<hr />
<h3>Uma solução em Python. A Solution in Python.</h3>
<p><a class="embed-card" href="https://gist.github.com/tictackode/b5e20714b5a3913c9a3e8eb220b0476f">https://gist.github.com/tictackode/b5e20714b5a3913c9a3e8eb220b0476f</a></p>

<p><a href="https://gist.github.com/tictackode/b5e20714b5a3913c9a3e8eb220b0476f">https://gist.github.com/tictackode/b5e20714b5a3913c9a3e8eb220b0476f</a></p>
<hr />
<h3>Uma solução em linguagem C. A Solution in C language.</h3>
<p><a class="embed-card" href="https://gist.github.com/tictackode/198bb3291e3cf7127a240543334ccfe7">https://gist.github.com/tictackode/198bb3291e3cf7127a240543334ccfe7</a></p>

<p><a href="https://gist.github.com/tictackode/198bb3291e3cf7127a240543334ccfe7">https://gist.github.com/tictackode/198bb3291e3cf7127a240543334ccfe7</a></p>
]]></content:encoded></item><item><title><![CDATA[Desafio de Algoritmo: Duelo da Carta Maior]]></title><description><![CDATA[#Desafio #Algoritmo #Programação Em um grande evento de games, tecnologia e cultura pop, haverá um show fechado de uma banda famosa. Para entrar, você e o…]]></description><link>https://regson.hashnode.dev/desafio-de-algoritmo-duelo-da-carta-maior</link><guid isPermaLink="true">https://regson.hashnode.dev/desafio-de-algoritmo-duelo-da-carta-maior</guid><dc:creator><![CDATA[Regson Jaques]]></dc:creator><pubDate>Mon, 28 Sep 2026 19:43:51 GMT</pubDate><content:encoded><![CDATA[<p>#Desafio #Algoritmo #Programação  </p>
<p>Em um grande evento de games, tecnologia e cultura pop, haverá um show fechado de uma banda famosa. Para entrar, você e o porteiro retirarão, ao acaso, de um baralho comum (sem jokers, de 52 cartas) uma carta. Se a sua carta for de valor mais alto que a do porteiro você entra, se não, não tem choro, você pode aproveitar o resto do evento mas não verá o show. Para comparar as duas cartas, para este desafio, os naipes são o primeiro critério de valor, e os valores das cartas são o segundo critério. Temos que COPAS é o naipe mais valioso, e PAUS o menos valioso. O segundo critério, que funciona como desempate é o valor das cartas. Abaixo está descrito o valor dos naipes e valores como sugestão. Crie um programa que simule este confronto de cartas, com apenas uma carta para cada um, sorteadas aleatoriamente. Escolha sua linguagem favorita, ou uma nova linguagem que esteja aprendendo.</p>
<p>Naipes:<br />PAUS = 0<br />OURO = 1<br />ESPADAS = 2<br />CORACAO = 3  </p>
<p>Valores:<br />DOIS = 2<br />TRES = 3<br />QUATRO = 4<br />CINCO = 5<br />SEIS = 6<br />SETE = 7<br />OITO = 8<br />NOVE = 9<br />DEZ = 10<br />VALETE = 11<br />DAMA = 12<br />REI = 13<br />AS = 14</p>
<h3>Solução em Python. Solution in Python:</h3>
<p><a class="embed-card" href="https://gist.github.com/tictackode/1917a1310d971a79b12b31a13e15b9a0">https://gist.github.com/tictackode/1917a1310d971a79b12b31a13e15b9a0</a></p>

<p><a href="https://gist.github.com/tictackode/1917a1310d971a79b12b31a13e15b9a0">https://gist.github.com/tictackode/1917a1310d971a79b12b31a13e15b9a0t</a></p>
]]></content:encoded></item><item><title><![CDATA[Exercício de algoritmo: Números quadrados perfeitos
]]></title><description><![CDATA[Exercício quadrado perfeito: Escreva um código que cheque se um numero é quadrado perfeito ou não, e em caso afirmativo imprima a raiz quadrada exata. Não…]]></description><link>https://regson.hashnode.dev/exerc-cio-de-algoritmo-n-meros-quadrados-perfeitos</link><guid isPermaLink="true">https://regson.hashnode.dev/exerc-cio-de-algoritmo-n-meros-quadrados-perfeitos</guid><dc:creator><![CDATA[Regson Jaques]]></dc:creator><pubDate>Sat, 26 Sep 2026 16:58:55 GMT</pubDate><content:encoded><![CDATA[<img src="https://cdn.hashnode.com/uploads/covers/6ab191d633d35a228b72adc8/c6e20c84-64e1-4bd3-9efe-c3044383234c.jpg" alt="" style="display:block;margin:0 auto" />

<p>Exercício quadrado perfeito: Escreva um código que cheque se um numero é quadrado perfeito ou não, e em caso afirmativo imprima a raiz quadrada exata. Não precisa tratar raízes de ponto flutuante. Não utilize a função sqrt().</p>
<p>Perfect Square Exercise: Write a code that checks whether a number is a perfect square or not, and if it is, prints the exact square root. There is no need to handle floating-point roots. Do not use the sqrt() function.</p>
<h3>Uma solução em Visual Basic. A solution in Visual Basic</h3>
<img src="https://cdn.hashnode.com/uploads/covers/6ab191d633d35a228b72adc8/3798347b-57e1-43d8-b173-2108f016ecfd.png" alt="" style="display:block;margin:0 auto" />
<p><a class="embed-card" href="https://gist.github.com/tictackode/fca1cc2e84ce96ff1d034c9e9f53100b">https://gist.github.com/tictackode/fca1cc2e84ce96ff1d034c9e9f53100b</a></p>

<p><a href="https://gist.github.com/tictackode/fca1cc2e84ce96ff1d034c9e9f53100b">Link to gist solution in Visual Basic</a>. Link para o gist da solução em Visual Basic</p>
<h3>Uma solução em linguagem C. A solution in C language.</h3>
<pre><code class="language-c">#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;stdbool.h&gt;

void quadradoPerfeito(int numero)
{
    bool equadradoPerfeito=false;
    int i=0;
    for(i=0;i&lt;numero;i++)
    {
        if(i*i==numero)
        {
            equadradoPerfeito=true;
            printf("%d e quadrado perfeito \n\n %d e a raiz quadrada exata\n",numero,i);
            i=numero;
        }
    }
    if(equadradoPerfeito==false)
    {
        printf("%d não e quadrado perfeito e não possui raiz quadrada exata.\n");
    }

}

int main()
{
    quadradoPerfeito(144);
    return 0;
}
</code></pre>
<img src="https://cdn.hashnode.com/uploads/covers/6ab191d633d35a228b72adc8/cb03e0b4-4c3f-4497-8b12-c3dee0e2bff3.png" alt="" style="display:block;margin:0 auto" />
<p><a class="embed-card" href="https://gist.github.com/tictackode/8938fdf048bb6e3e6d7a8e48bce7c6ae">https://gist.github.com/tictackode/8938fdf048bb6e3e6d7a8e48bce7c6ae</a></p>

<p><a href="https://gist.github.com/tictackode/8938fdf048bb6e3e6d7a8e48bce7c6ae">Link to gist solution in C language. Link para o gist da solução no GitHub.</a></p>
<h3>Uma solução em Python. A solution in Python.</h3>
<img src="https://cdn.hashnode.com/uploads/covers/6ab191d633d35a228b72adc8/10571709-2c83-4840-9dc2-de3e0db291dd.png" alt="" style="display:block;margin:0 auto" />

<pre><code class="language-python">def quadradoPerfeito(numero):
    possuiRaizExata=False
    for i in range(1,numero):
        if i*i==numero:
            possuiRaizExata=True
            print(str(numero)+" é quadrado perfeito!")
            print(str(i)+" é a raiz quadrada")
    if possuiRaizExata==False:
        print("Não e quadrado perfeito e não possui raiz exata.")

quadradoPerfeito(400)
</code></pre>
<p><a class="embed-card" href="https://gist.github.com/tictackode/8c028dab962fbad0646946ecf57e1e9e">https://gist.github.com/tictackode/8c028dab962fbad0646946ecf57e1e9e</a></p>

<p><a href="https://gist.github.com/tictackode/8c028dab962fbad0646946ecf57e1e9e">Link to gist solution in github. Link para o gist da solução no GitHub.</a></p>
]]></content:encoded></item><item><title><![CDATA[Exercício de algoritmo #03   Trabalhando com o Cubo.]]></title><description><![CDATA[É muito satisfatório ver como os estudos de linguagens de programação e de matemática podem se unir! São 2 mundos que se interconectam e se complementam…]]></description><link>https://regson.hashnode.dev/exerc-cio-de-algoritmo-03-trabalhando-com-o-cubo</link><guid isPermaLink="true">https://regson.hashnode.dev/exerc-cio-de-algoritmo-03-trabalhando-com-o-cubo</guid><dc:creator><![CDATA[Regson Jaques]]></dc:creator><pubDate>Sat, 26 Sep 2026 00:58:06 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6ab191d633d35a228b72adc8/7631ac20-a31a-4b6c-9893-1effd1690115.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>É muito satisfatório ver como os estudos de linguagens de programação e de matemática podem se unir! São 2 mundos que se interconectam e se complementam 😊<br />Este desafio/exercício faz justamente isso! Tem 30 minutinhos? Vamos praticar!  </p>
<p>Desafio de programação #03 - Trabalhando com Cubo  </p>
<p>Escreva na sua linguagem de programação favorita, um programa no qual que inserimos por parâmetro valor da aresta de um cubo e o programa nos devolva o volume do cubo e sua área lateral total. Para melhor organização, crie uma função para o volume e outra função para a área lateral total.<br />Poste sua solução nos comentários. 😄</p>
<hr />
<h1>[EN] Code Challenge #03 - Working with the Cube</h1>
<p>It's great to see that the studies of programming languages and mathematics can be done at the same time, like 2 worlds that are interconnected and that complements each other. This code challenge dos exactly this! Do you have 30 minutes? Let's practice!  </p>
<p>Write in your favorite programming language, a program in which we insert the value of the edge of the cube and the program returns the cube's volume ans the total side area. For better organization, create one function for the volume and another function for the total side area.<br />Post your solution in the comments.</p>
<hr />
<h2>Segue uma solução em linguagem C</h2>
<img src="https://cdn.hashnode.com/uploads/covers/6ab191d633d35a228b72adc8/3f3f4e08-1c83-4092-a29b-6fcfd5e8222d.png" alt="" style="display:block;margin:0 auto" />
<p><a class="embed-card" href="https://gist.github.com/tictackode/0951ad4f713bab24a61dfabce2408633">https://gist.github.com/tictackode/0951ad4f713bab24a61dfabce2408633</a></p>

<p><a href="https://gist.github.com/tictackode/0951ad4f713bab24a61dfabce2408633">Link para o gist da solução em C no github</a></p>
<h2>Segue uma solução em Visual Basic</h2>
<img src="https://cdn.hashnode.com/uploads/covers/6ab191d633d35a228b72adc8/440f2962-6b67-45d3-bab0-6e90e088f568.png" alt="" style="display:block;margin:0 auto" />
<p><a class="embed-card" href="https://gist.github.com/tictackode/4d1a6373964843410cb56b3f9e6f13b9">https://gist.github.com/tictackode/4d1a6373964843410cb56b3f9e6f13b9</a></p>

<p><a href="https://gist.github.com/tictackode/4d1a6373964843410cb56b3f9e6f13b9">Link para o gist da solução em Visual Basic</a></p>
]]></content:encoded></item></channel></rss>