Searching...

Payed Amount with 20% Discount..

15:57

#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;
}

0 comments:

Post a Comment

Thanks For Your FeedBack....