Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class egg {
- public static void main(String[] args) {
- System.out.print( "已知蛋有500顆,且已知一打有12蛋\n那麼這500顆蛋,可分為?打和剩下?顆蛋\n\n" );
- System.out.printf( "計算結果為:%s打,以及剩下%s顆蛋", 500/12, 500%12 );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement