Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.57 KB | None | 0 0
  1.    for (int i = poz-1; i>=2; i--){
  2.                 if (zad4[i] == '1'){
  3.                     System.out.print('1');
  4.                     i--;
  5.                     while (i != 2){
  6.  
  7.                         if (zad4[i] == '1'){
  8.                             System.out.print('0');
  9.                         } else if (zad4[i]=='0') {
  10.                             System.out.print('1');
  11.                         }
  12.                         i--;
  13.  
  14.                     }
  15.                 } if (zad4[i] == '0') {
  16.                     System.out.print('0');
  17.                 }
  18.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement