//Cost of one book is 50 dirhams. if you buy 2 books then the third book will be free.
//Write a C++ program that will input the number of the books and output the cost of the books.
I tried to understand the question and solve it but apparently its wrong.
// Alogrithim:
//1) Prompt user enter number of books
//2) Calculate cost of books using the following formula:
// if # of books is odd: cost = (n - 1 ) * 50;
// if # of books is even: cost = (n - 2 ) * 50;
//3) Print the total cost of books.