-
-
Save s0h1s2/dea9167900f739daab681773ed7efdf2 to your computer and use it in GitHub Desktop.
Tax Cal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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