Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace Task_1_3_5
- {
- class Program
- {
- static void Main()
- {
- int x = 1;
- int y = 1;
- int z = 1;
- if (y!=++x & x==++z | z!=x)
- {
- Console.WriteLine("State 1: x:" +x+" y:"+y+" z:"+z);
- }
- x=1;
- y=1;
- z=1;
- if ( x==++z & y!=++x | z!=x)
- {
- Console.WriteLine("State 2: x:" +x+" y:"+y+" z:"+z);
- }
- x=1;
- y=1;
- z=1;
- if ( ++x==z & y!=x | x != z)
- {
- Console.WriteLine("State 3: x:" +x+" y:"+y+" z:"+z);
- }
- x=1;
- y=1;
- z=1;
- if(x==z | x != y & y==--z)
- {
- Console.WriteLine("State 4: x:" +x+" y:"+y+" z:"+z);
- }
- x=1;
- y=1;
- z=1;
- if ( ( x==z | x != y ) & y==--z)
- {
- Console.WriteLine("State 5: x:" +x+" y:"+y+" z:"+z);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement