0
c++
write a program to calculat sale% user slected item show orignal price Discount price & benifit if perchaise more then 10,000 give him 10% duscount
2 Answers
+ 1
#include <iostream>
using namespace std;
int main()
{
double price = 0.0, discount = 0.0, sellingPrice= 0.0;
cout << "Product Price:" << endl;
getline(cin, price);
if(price> 10000)
discount= 0.1;
sellingPrice = price - (price* discount);
cout<< "Product Selling Price: quot; << sellingPrice<< endl;
return 0;
}
0
thanks