Is there a better way to do this?
quarta-feira, 21 de dezembro de 2016
segunda-feira, 19 de dezembro de 2016
sábado, 10 de dezembro de 2016
First time coding
Prime number or not?
Today I wrote a code that says if a number is a prime number or not. The coolest exercise assignment for today, and yet not the hardest.
Much harder for me was to figure out a way to tell if a certain number has a couple of equal adjacent digits inside of it, or not. For example: 1223 = yes; 1234 = no.
Much harder for me was to figure out a way to tell if a certain number has a couple of equal adjacent digits inside of it, or not. For example: 1223 = yes; 1234 = no.
Assinar:
Postagens (Atom)