Product Sales Billing Program
using System;
public class test1
{
public static void Main(string[] args)
{
{
int a,b,c,de,tot;
string p;
Console.WriteLine("Enter the Product Name : ");
p=Console.ReadLine();
Console.WriteLine("Enter the Total Quantity : ");
a=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter the Price of the Product : ");
b=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter the Tax of the Product : ");
c=Convert.ToInt32(Console.ReadLine());
de=b/c;
tot=(a*b)+de;
Console.WriteLine("Product Name : "+p+"\n");
Console.WriteLine("Total Quantity : "+a+"\n");
Console.WriteLine("Price of the Product : "+b+"\n");
Console.WriteLine("Tax of the Product : "+c+"\n");
Console.WriteLine("Tax Amount : "+de+"\n");
Console.WriteLine("Total Amount : "+tot+"\n");
}
}
}
%20-%20Google%20Chrome%201_3_2023%209_05_58%20PM.png)
.png)

Comments
Post a Comment