Skip to content

Instantly share code, notes, and snippets.

View havidad's full-sized avatar

Tyler Hamsmith havidad

View GitHub Profile
@havidad
havidad / HailStones.cpp
Created November 2, 2012 23:13
A Hailstone Sequence solver that prints out all sequences from 1 - 200.
#include "stdafx.h"
#include <iostream>
#include <conio.h>
using namespace System;
using namespace std;
int main(array<System::String ^> ^args){
/* testNumber is used for the number that the hailstone program is solving for, number
is used inside the tests, its set equal to testNumber, iteration is a counter seeing how
many numbers are in each sequence, highestIteration saves iterations highest value, keepGoing