// july17ex3.cpp : Defines the entry point for the console application.
// THis program creates random nums 1 - 9.  They must total 100 (or, rather, mytotal).

#include "stdafx.h"
#include "stdlib.h"
#include "time.h"
#define mytotal 100


int main(int argc, char* argv[])
{  int numbah, running_total = 0;
   
   srand(time(NULL));

   while (running_total < (mytotal - 9)) {
      numbah = rand() % 9 + 1; 
	  printf("%d + ", numbah);

	  running_total += numbah;



   } /* end while running_total */

   printf("%d = %d \n", mytotal - running_total, mytotal);

	return 0;
}