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

28th Nov 2016, 9:58 AM
Qaiser Farooq
Qaiser Farooq - avatar
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; }
30th Nov 2016, 2:05 AM
Jay Tee
0
thanks
30th Nov 2016, 3:23 AM
Qaiser Farooq
Qaiser Farooq - avatar