Question: write in c++ program: An incredulous buyer counts the total amount of purchases in kopecks. But, coming to the cashier, it is difficult for him
write in c++ program:
An incredulous buyer counts the total amount of purchases in kopecks. But, coming to the cashier, it is difficult for him to understand how many rubles and kopecks he must pay. Write a program that will help him. Input One integer from the range of 1..1 million - purchase amount in kopecks. Imprint: It is necessary to issue a record of how much rubles and kopecks the buyer should pay. In doing so, you must follow the following rules:
1. The words "ruble" and "kopeck" must be agreed with the numerals. For example: "1 ruble", but "5 rubles", "1 kopek", but "23 kopecks."
2. The output of the number of rubles and kopecks must be made in separate lines. If the number of rubles or cents is zero, then the corresponding line should not be output. 3. The words "ruble", "kopeck" should be printed in BIG letters.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
