#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
  int
     num, i, temptwo, tempthree;
  double
     temp, value[10];
  system("COLOR 0A");
  system("TITLE Casino Console");
  printf("\nEnter number of participants (maximum 10): ");
  scanf("%i",&num);
  while(1)
  {
          system("CLS");
          for (i = 1; i <= num; i++)
          {
              printf("\n%i - %f\n",i,value[i]);
          }
          printf("Select Operation: (1 = deduct, 2 = add) ");
          scanf("%i",temptwo);
          printf("\nPlease enter participant id number: ");
          scanf("%i",tempthree);
          printf("\nEnter amount to change: ");
          scanf("%f",temp);
          if (temptwo == 1)
          {
                    value[tempthree] = value[tempthree] - temp;
          }
          if (temptwo == 2)
          {
                    value[tempthree] = value[tempthree] + temp;
          }
  }
  system("PAUSE");	
  return 0;
}
