Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- *Self Check 3.2 Number 17
- *
- * Zain Arfi
- * @version (a version number or a date)
- */
- public class countQuarters
- {
- public static void main(String[] args)
- {
- int cents= 64;
- countQuarters(cents);
- }
- public static void countQuarters(int x)
- {
- System.out.println(x%10000/25);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement