// july10ex4.cpp : Defines the entry point for the console application.
//Grocery # 2 - Trailer/Sentinel

#include "stdafx.h"

int main(int argc, char* argv[])
{
    int total=0, price;

	printf("Type in items, type -999 to stop\n");
	scanf("%d", &price);

	while (price != -999)  {

		total = total + price;

		scanf("%d", &price);


	}

	printf("Your total is $ %d \n", total);
	


	return 0;
}