Visit our site: Vist and Get Free Gifts

Learn To Build: Function And Methods

Visit our site: Vist and Get Free Gifts

Visit our site: Vist and Get Free Gifts

Tuesday, February 4, 2014

Function And Methods

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

namespace FuncsAndMethods
{
    class Program
    {
        static void Main(string[] args)
        {
            int result1;

            result1 = formula(14);
            Console.WriteLine("The result is: {0}", result1);

            Console.ReadLine();
        }

        static int formula(int theVal)
        {
            return (theVal * 2) / 3 + 15;
        }
    }
}

Labels: ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home