Write a program that reads an amount A and prints the minimum number of 100, 50, 10 and 1 rupee notes required for the given amount. Output: The first line of output should be a string containing the required number of 100 rupee notes as shown in the sample output. The second line of output should be a string containing the required number of 50 rupee notes as shown in the sample output. The third line of output should be a string containing the required number of 10 rupee notes as shown in the sample output. The fourth line of output should be a string containing the required number of 1 rupee notes as shown in the sample output.
I tried it 3 times , and I am now unable to do it using the if else statements , please anyone help
Here is a solution to your question: