ok so i am new to c# and i am trying to write a program that asked the user for input on what item they want to buy, the price for the item and to show the input of the price after sales tax.i am having trouble getting the price with the sales tax to show. help please
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lab
{
class Program
{
static void Main(string[] args)
{
string product;
float price;
float salesTax = 8.25F;
float shipping;
Console.WriteLine("Welcom to &Inc");
Console.WriteLine("What is the product you want?");
product = Console.ReadLine();
Console.WriteLine("What is the price");
price = Single.Parse(Console.ReadLine());
Console.WriteLine(price);
Console.WriteLine("How much is product with sales tax");
price = price * salesTax + price;
Console.WriteLine("This is the price with sales tax");
Console.WriteLine(price);
}
}
}