public class MyContainer<T> where T: class, IComparable { //Insert code here }
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);
int a = 10, b = 20, c = 30; int res = a < b? a < c? c : a : b; Console.WriteLine(res);
int i = 0, j = 0; label: i++; j+=i; if (i < 10) { Console.Write(i +" "); goto label; }
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.