int a; String res; if (a % 2 == 0) res = "Even"; else res = "Odd";
int a; String res; if (a Mod 2 == 0) res = "Even"; else res = "Odd";
int a; Console.WriteLine(a Mod 2 == 0? "Even": "Odd");
int a; String res; a % 2 == 0? res = "Even" : res = "Odd"; Console.WriteLine(res);
byte b1 = 0xAB; byte b2 = 0x99; byte temp; temp = (byte)~b2; Console.Write(temp + " "); temp = (byte)(b1 << b2); Console.Write (temp + " "); temp = (byte) (b2 >> 2); Console.WriteLine(temp);
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.