convert Gallons to Table Spoons - CSharp System

CSharp examples for System:Math Convert

Description

convert Gallons to Table Spoons

Demo Code


using System.Threading.Tasks;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;/*www.j ava  2 s . c om*/

public class Main{
         private const float TBLSPN_PER_GALLON = 256;
        //convert gallons to table spoons
        public static void convertGallonstoTableSpns(float gallons)
        {

            float result = TBLSPN_PER_GALLON * gallons;
            Console.WriteLine("There are {1} table Spoons in {0} gallons", gallons, result);


        }
}

Related Tutorials