Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i = poz-1; i>=2; i--){
- if (zad4[i] == '1'){
- System.out.print('1');
- i--;
- while (i != 2){
- if (zad4[i] == '1'){
- System.out.print('0');
- } else if (zad4[i]=='0') {
- System.out.print('1');
- }
- i--;
- }
- } if (zad4[i] == '0') {
- System.out.print('0');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement