Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace HOA1
- {
- class Program
- {
- static void Main(string[] args)
- {
- double amount, final_price;
- double discount_rate;
- Console.Write("Enter amount (Php): ");
- amount = int.Parse(Console.ReadLine());
- Console.Write("Enter discount rate (%): ");
- discount_rate = double.Parse(Console.ReadLine());
- final_price = amount - (amount * (discount_rate / 100));
- Console.WriteLine("Final Price: Php " + final_price);
- Console.WriteLine("-------------------------------------------------------");
- double weight, height, bmi;
- Console.Write("Enter weight: ");
- weight = double.Parse(Console.ReadLine());
- Console.Write("Enter height: ");
- height = double.Parse(Console.ReadLine());
- bmi = (weight * 0.45) / ((height * 0.025) * (height * 0.025));
- Console.WriteLine("BMI: " + bmi);
- Console.WriteLine("-------------------------------------------------------");
- double start, end, sum;
- Console.Write("Enter start: ");
- start = double.Parse(Console.ReadLine());
- Console.Write("Enter end: ");
- end = double.Parse(Console.ReadLine());
- sum = end * ((start + end) / 2);
- Console.WriteLine("Sum: " + sum);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement