Write a fortan program code that takes in a certain amount o
 Write a fortan program code that takes in a certain amount of money and outputs that amount in terms of American coins.(for example $1.47 would return 5 quarters 2 dimes and 2 pennies)
  Write a fortan program code that takes in a certain amount of money and outputs that amount in terms of American coins.(for example $1.47 would return 5 quarters 2 dimes and 2 pennies)
Solution
Here goes the required FORTRAN Program for the given question
Code:
program hello
    real::a
    integer::quarters,dimes,pennies
    Print *, \"Enter the amount of money\"
    read *,a
    a=a*100
    quarters=a/25
    a=a-quarters*25
    dimes=a/10
    pennies=a-dimes*10
    Print *,\"You have \",quarters,\" quarters,\",dimes,\" dimes,\",pennies,\" pennies\"
 end program Hello
 Explanation:

