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
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
Math,
15 days ago
English,
15 days ago
English,
1 month ago
World Languages,
9 months ago
Geography,
9 months ago
Computer Science,
9 months ago