my homework

/*
* ***********************************************************
*
* Programming Language, second semester 2017-2018
* Homework: ....
* Exercise: ....
* Name: ........
* ID number: .......
* Program description: .......
*
* ***********************************************************
*/

#include <iostream>

using namespace std;

int main()
{
double AmountM , ReqM , ReturnM ;
ReqM = 200 ;
ReturnM = AmountM - ReqM ;
cout << "\aThis Product for 200 JD Please Pay Here = ";
cin >> AmountM ;
if ( AmountM > 200 )
{
cout << "Your change is = " << AmountM - ReqM ;
}else if ( AmountM < 0 )
{
cout << " Sorry My friend Nothing is free :( ";
return 0;
}else if ( AmountM < 200 )
{
cout << "\aError you need more money to get this product :) ";
}



return 0;
}
First, please use code tags when posting code. See http://www.cplusplus.com/articles/jEywvCM9/

Do you have a question/problem about your code?
Topic archived. No new replies allowed.