It is possible to do it this way, too:
Code:
void output()
{
printf("Your new balance is %2.f\n", updated_current);
if (updated_current < 0)
{
printf("We would like to make you aware you have entered your over draft.");
}
}
Or even
Code:
void output()
{
printf("Your new balance is %2.f\n", updated_current);
if (updated_current < 0)
printf("We would like to make you aware you have entered your over draft.");
}
Also, I'd like to say: lose the globals. Pass by arguments instead. It makes debugging much easier.