- 1
Write a program to find the sales price of an item given an original price and a percentage discount.
sales price =original price -discount, original price =730, discount=10%
1 Réponse
0
#include <iostream>
using namespace std;
int main (){
float op, dis, sp;
cout <<"Enter original price: ";cin>>op;
cout <<"Enter discount (%) : ";cin>>dis;
sp = op - (op*dis/100);
cout <<"Sales price: ";cin>>sp;
}