simple program of cint main int


Simple program of c++:

int main()

{

   int   bushels;

   float dollars, rate;

                cout << "How many dollars did you get? $";

                cin >> dollars;

                cout << "For how many bushels? ";

                cin >> bushels;

                rate = dollars / bushels;

                cout.precision(2);

                cout << "You have received $" << rate << " for each bushel.\n";

 

   return 0;

}

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: simple program of cint main int
Reference No:- TGS0174800

Expected delivery within 24 Hours