I HAD A PROBLEM IN MY PROGRAM.
MY PROBLEM IS ON HOW TO COMPUTE THE MONEY BREAKDOWN OF THE WITHDREW MONEY.
PLEASE HELP ME..THANKS FOR ALL COMMENTS AND SUGGESTIONS..

#include<iostream.h>

int main(){
    int bd;
    char transaction;
    int withdraw, deposit, money;
    double balance = 50000;


    cout<<"What transaction do you want?"<<endl<<endl;
    cout<<"[1]DEPOSIT"<<endl;
    cout<<"[2]WITHDRAW"<<endl;
    cout<<"\nENTER YOUR CHOICE: ";
    cin>>transaction;

    if(transaction == '1'){
                   cout<<"Enter amount you want to deposit:";
                   cin>>deposit;
                   money = balance + deposit;
                   cout<<"Your total balance is:"<<money;
                   }

    if(transaction == '2'){
                   cout<<"Enter amount you want to withdraw:";
                   cin>>withdraw;
                   cout<<"You have withdraw an amount of "<<withdraw<<endl<<endl;

                   if (withdraw > 1000){
                                bd = withdraw / 1000;
                                bd = bd % 1000;
                                }

                   cout<<"BREAKDOWN OF AMOUNT WITHDREW:\n";
                   cout<<"\n1000 peso - "<<bd<<endl;


                   money = balance - withdraw;
                   cout<<"You currently have "<<money<<" in your account";
                   }

    cout<<"\n\n";
    system("pause");
    return 0;
}

bd = withdraw / 1000;
bd = bd % 1000;

What is the use of the first statement if you change bd right after that?
Store it into something else.

thanks for the reply...ill change the second equation..
that's why it cant read the equation...thanks again