= -10) i -= 4; else break; } 20"> = -10) i -= 4; else break; } 20">
int i = 20 ; for( ; ; ) { Console.Write(i + " "); if (i >= -10) i -= 4; else break; }
if (Condition1)
{// Some statement}
if (Condition1) {// Some statement}
else {// Some statement}
if (Condition1) {// Some statement}
else {// Some statement}
else if ( Condition2){//Some statement}
if ( Condition1 ) {// Some statement}
else if ( Condition2 ) {// Some statement}
else {// Some statement}
if ( Condition1 ) {// Some statement}
else if ( Condition2 ) {// Some statement}
else if ( Condition3 ) {// Some statement}
else {// Some statement}
if (Condition1) {// Some statement}
else {// Some statement}
else if ( Condition2){//Some statement}
int i = 0; do { Console.WriteLine(i); i+ = 1; } while (i <= 10);
int i = 0;
do
{
Console.WriteLine(i);
} until (i <= 10);
int i;
for (i = 0; i <= 10 ; i++)
Console.WriteLine(i);
int i = 0;
while (i <= 11)
{
Console.WriteLine(i);
i += 1;
}
int i = 0;
do while ( i <= 10)
{
Console.WriteLine(i);
i += 1;
}
int i = 0;
do until (i <= 10)
{
Console.WriteLine(i);
i+=1;
}
int i;
for (i = 0; i <= 10 ; i++)
Console.WriteLine(i);
int a = 1, b = 2, c = 0; if (a < b) c = a;
int a = 1, b = 2, c = 0;
c = a < b ? a : 0;
int a = 1, b = 2, c = 0;
a < b ? c = a : c = 0;
int a = 1, b = 2, c = 0;
a < b ? c = a : c = 0 ? 0 : 0;
int a = 1, b = 2, c = 0;
a < b ? return (c): return (0);
int a = 1, b = 2,c = 0;
c = a < b : a ? 0;
int a = 1, b = 2, c = 0;
c = a < b ? a : 0;
namespace CuriousTabConsoleApplication { public enum color { red, green, blue }; class SampleProgram { static void Main (string[ ] args) { color c = color.blue; switch (c) { case color.red: Console.WriteLine(color.red); break; case color.green: Console.WriteLine(color.green); break; case color.blue: Console.WriteLine(color.blue); break; } } } }
switch (id) { case 6: grp = "Grp B"; break; case 13: grp = "Grp D"; break; case 1: grp = "Grp A"; break; case ls > 20: grp = "Grp E"; break ; case Else: grp = "Grp F"; break; }
char[ ] arr = new char[ ] {'k', 'i','C', 'i','t'} ;
do
{
Console.WriteLine((char) i);
}
while (int i = 0; i < arr; i++);
foreach (int i in arr)
{
Console.WriteLine((char) i);
}
for (int i = 0; i < arr; i++)
{
Console.WriteLine((char) i);
}
while (int i = 0; i < arr; i++)
{
Console.WriteLine((char) i);
}
do
{
Console.WriteLine((char) i);
}
until (int i = 0; i < arr; i++);
foreach (int i in arr)
{
Console.WriteLine((char) i);
}
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 i = 0, j = 0; label: i++; j+=i; if (i < 10) { Console.Write(i +" "); goto label; }
if (age > 18 || no < 11) a = 25;
int i = 1, j = 1, val; while (i < 25) { Console.Write(j + " "); val = i + j; j = i; i = val; }
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.