convert Cup To Teaspoon - CSharp System

CSharp examples for System:Math Convert

Description

convert Cup To Teaspoon

Demo Code


using System.Threading.Tasks;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;/*from   w w w. j a va2  s .  c  o m*/

public class Main{
        //convert cup to teaspoon
        public static void convertCupToTeaspoon(double cup)
        {

            double result = CUP_TO_TEASPOON * cup;
            Console.WriteLine("There are {1} tea Spoons in {0} cups", cup, result);


        }
}

Related Tutorials