Friday, 2 November 2012

Payed Amount with 20% Discount..


#include <iostream>
using namespace std;
int main()
{
float amount,discount,pay_amount;
cout << "Enter Amount:"<<endl;
cin >> amount;
discount=(20.0/100)*amount;
pay_amount= amount-discount;
cout << "Payed Amount is = " << pay_amount <<endl;
return 0;
}

No comments:

Post a Comment