C#

Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Sunday, 10 November 2013

goto


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace @goto
{
    class Program
    {

        public int foo(int x)
        {
            if (x > 0) goto anu;
            x = -x*2;
           anu: return x;
           
       
        }


        static void Main(string[] args)
        {
            Program p = new Program();
            int j = p.foo(-23);
            Console.WriteLine("the value of j is {0}", j);

            Console.ReadLine();

        }
    }
}

//this is a good example.....goto
/*all you have to do is to put the label
 and just you need
 *
 *
        public int foo(int x)
        {
            if (x > 0) goto anu;
            x = -x*2;
           anu: return x;
           
       
        }

 * thats it man this is going to work for you man
 * no tension njoy maadi
 *

 */

No comments:

Post a Comment