Actually, I just changed this and now it stops at the top when you enter a date for program. I am not sure what is wrong, braces missing?
Code:
#include <stdio.h>
#define SENTINEL 0
float endbal,
finbal;
int date;
int main (void)
{
int outdep = 0,
withdraw = 0;
/*CHECKBOOK RECONCILIATION PROGRAM*/
/*================================*/
/*This program will help you to reconcile your checkbook.*/
/*Be sure that your printer is ready for use.*/
/*What is today's date (MN/DY.YR)?*/
printf ("CHECKBOOK RECONCILIATION FOR:");
scanf ("%d",date);
printf("n\n");
/*What was the ending balance on your last statement?*/
printf ("Ending balance on last bank statement:");
scanf ("%f", & endbal);
/*Enter below any deposits recorded in your checkbook which*/
/*do not appear on your bank statement. Enter 0 when done.*/
printf("Enter Outstanding dep (or %d when done)>", SENTINEL);
scanf ("%d", & outdep);
while (outdep!= SENTINEL)
{
finbal += outdep;
printf("Enter Outstanding deposits (%d when done)>\n\n", SENTINEL);
scanf("%d", & outdep);
}
/*Enter below any check/witdrawals recorded in your*/
/*checkbook which do not appear on your bank statement.*/
/*Enter 0 when done.*/
printf("Outstanding check/withdrawal (or %d when done)>", SENTINEL);
scanf ("%d", & withdraw);
while (withdraw!=SENTINEL)
{
finbal += withdraw;
printf("Outstanding check/withdrawals: (%d when done)>", SENTINEL);
scanf("%d", & withdraw);
}
finbal = endbal + outdep - withdraw;
printf("Your final balance in your checkbook should be $ %f\n", finbal);
return 0;
}