Mr. RAM took a FIVE HUNDRED rupee note to a shop . He bought a PEN for Rs 180 , COLD DRINKS for Rs. 60 , ICE CREAM for Rs 120 and BISCUIT worth Rs 25 . WAP to calculate and print how much money did he spend and how much money remained with him after the purchase .
please explain it like this -
WAP in c++ to calculate and print the profit percent of an item when the
cost price of that item is Rs.1200 and selling price is Rs.1600
# include < iostream . h >
# include < conio . h >
void main ( )
{
// Variable declaration
int cp , sp , p = 0 ;
float pp ;
// Assign the cost price and selling price
cp = 1200 ;
sp = 1600 ;
// Calculate the profit amount and profit percent
p = sp – cp ;
pp = p / cp *100 ;
// Print the profit percent
cout<< “ Profit percent = ” << pp ;
getch( ) ;
}
please help as soon as possible
Answers
Answered by
0
Answer:
hi here is my answer
Similar questions
English,
1 month ago
Biology,
1 month ago
Political Science,
2 months ago
Geography,
2 months ago
Biology,
9 months ago
India Languages,
9 months ago