Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Ex4 {
- public static void main(String[] args) {
- int n = 10;
- int reminder;
- while (n != 0) {
- reminder = n % 2;
- n = n / 2;
- System.out.print(reminder);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement