Advertisement
mcnealk

3.2 #17

Sep 26th, 2014
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. public class Seventeen
  2. {
  3. public static void main(String [] args)
  4. {
  5. int answer=countQuarters(225);
  6. System.out.print(answer);
  7. }
  8. public static int countQuarters(int cents)
  9. {
  10. int i= cents%100;
  11. int answer= i/25;
  12. return answer;
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement