Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Seventeen
- {
- public static void main(String [] args)
- {
- int answer=countQuarters(225);
- System.out.print(answer);
- }
- public static int countQuarters(int cents)
- {
- int i= cents%100;
- int answer= i/25;
- return answer;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement