class Program
    {
        static void Main(string[] args)
        {
            int x = 6;
            while (x < 6)
            {
                x = 1;
                Console.WriteLine(x);
                x = x + 1;

Pasted 26 minutes ago

class Program
    {
        static void Main(string[] args)
        {
            int a;
            for (a = 10; a < 20; a = a + 5)
            {
                break;
            }
            Console.WriteLine("value of a: {0}", a);

Pasted 31 minutes ago

class Program
    {
        public static int Main() { int j = 20; for (int i = 0; i < 10; i++) { int j = 30; Console.WriteLine(j + i); } return 0; }
    }

Pasted 32 minutes ago

public static int Main() { int j = 20; for (int i = 0; i < 10; i++) { int j = 30; Console.WriteLine(j + i); } return 0; }

Pasted 33 minutes ago

public class Program
    {
        static void Main(string[] args)
        {
            int a = 0, b = 0, c = 0;
            for (; ; ) ;
            {
                Console.WriteLine(a + "z");
                b = b + "z";
                Console.WriteLine(b);

Pasted 34 minutes ago

class Program
    {
        static void Main(string[] args)
        {
            for (int a = 10; a < 20; a = a + 5)
            {
                Console.WriteLine("value of a: {0}", a);
                break;
            }
            Console.WriteLine(a);

Pasted 35 minutes ago

class Program
    {
        static void Main(string[] args)
        {
            int input;
            input = 6;             for (int x = 1; x <= input; x++)
            {
                if ((x % 2) == 0)
                {
                    Console.Write(x);

Pasted 36 minutes ago


Pasted 38 minutes ago

public class DotNetPad
{
    static void Main(String[] args)
        {
            int num1 = 10;
            int num2 = 20;
            int num3 = 30;
            int result = 0;
            if ((num1 >= num2) && (num3 >= num2))
                result = num1;

Pasted 2 days ago

public class DotNetPad
{
    static void Main(string[] args)
        {int iNum=2;
              switch(iNum)
              { case 1:                 Console.WriteLine(iNum);               case 2:                 Console.WriteLine(iNum);                break;               }
}}

Pasted 2 days ago

public class DotNetPad
{
    static void Main(string[] args)
        {int iNum=2;
              switch(iNum)
              { case 1:                 Console.WriteLine(iNum);               case 2:                 Console.WriteLine(iNum);                break;               }
}

Pasted 2 days ago

public class DotNetPad
{
    static void Main(string[] args)
        {
            char grade = 'B';
            switch (grade)
            {
                case 'A':
                    Console.WriteLine("Excellent!");
                    break;

Pasted 2 days ago