Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.89 KB | None | 0 0
  1. public class HelloWorld{
  2.  
  3.      public static void main(String []args){
  4.        
  5.         // wpisalem na poczatku a2 = 0
  6.         // tylko zeby zobaczyc jaki jest wynik
  7.         // petla
  8.         boolean found = false;
  9.         int i = Integer.MIN_VALUE;
  10.         int i_max = -i;
  11.         for( ; i < i_max ; i++)
  12.         {
  13.             int a1 = 0x6D, a2 = i, a = a1 & a2,
  14.                 b1 = 0xA, b2 = a2, b = b1 | b2,
  15.                 c1 = 11 << 2, c2 = a2, c = c1 ^ c2;
  16.                
  17.             if( a == 13 && b == 15 & c == 42)
  18.             {
  19.                 found = true;
  20.                 System.out.println("mamy to");
  21.                 System.out.println(a + " " + b + " " + c);
  22.                 System.out.println("a2 = " + i);
  23.                 break;
  24.             }
  25.         }
  26.        
  27.         if( false == found )
  28.         {
  29.             System.out.println("dupa");
  30.         }
  31.      }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement