NIGHT_TYPE

Mike Garcia

until your eyes bleed

  1. Using Nested for Loops in C++ to Find Prime Numbers

    17. September 2014 782 words ~4 minutes read Comment

    A prime number (or a prime) is a natural number greater than 1 that has no positive divisors other than 1 and itself. –Wikipedia It comes up quite a bit that you will need to run a loop inside of another loop. For these examples we are trying to find prime numbers between 3¬†and 100. …

  2. C++ Project – Count Consonants & Convert Casing

    19. January 2014 259 words ~3 minutes read

    Here’s one of my assignments from an elementary C++ class I took. Here we’re dealing with functions, and for loops mostly. You’re basically reading a text file in, line by line and sending each character¬†to a function specifically to count or convert the character depending on the user’s choice. The specifications were: Program will read …