Skip to content

Instantly share code, notes, and snippets.

@s0h1s2
Created February 9, 2018 18:05
Show Gist options
  • Save s0h1s2/dea9167900f739daab681773ed7efdf2 to your computer and use it in GitHub Desktop.
Save s0h1s2/dea9167900f739daab681773ed7efdf2 to your computer and use it in GitHub Desktop.
Tax Cal
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp28
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Enter costes:");
double cost = Double.Parse(Console.ReadLine());
Console.WriteLine("Enter tax:");
double tax= Double.Parse(Console.ReadLine());
tax = tax / 100;
double output = cost * tax;
Console.WriteLine("Your tax is :{0}",output);
double end = cost + output;
Console.WriteLine("Your end programm is :{0}",end);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment