Computer Science, asked by praisejoy28, 5 hours ago

write a c++program to find the total cost of 5 books and 10 pencils, if one book costs ₹28.75 and 1 pencils cost ₹2,50​

Answers

Answered by sanjiththesupernigha
1

Answer:

#include <iostream>

using namespace std;

int main() {

  double num1 = 5,num2 = 10,price1 = 28.75, price2 = 2.50,cost1,cost2;

  cost1 = num1*price1;

  cost2 = num2*price2;

  cout << "Cost of 5 books : ₹"<<cost1 << endl;

  cout <<"Cost of 10 pencils : ₹"<<cost2;

  return 0;

}

 

Explanation:

Similar questions