Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace BraceletStand
- {
- class Program
- {
- static void Main(string[] args)
- {
- double dayCash = double.Parse(Console.ReadLine()) * 5;
- double dayProfit = double.Parse(Console.ReadLine()) * 5;
- double cost = double.Parse(Console.ReadLine());
- double giftPrice = double.Parse(Console.ReadLine());
- double total = dayCash + dayProfit - cost;
- if (total >= giftPrice)
- {
- Console.WriteLine($"Profit: { total:f2} BGN, the gift has been purchased.");
- }
- else
- {
- Console.WriteLine($"Insufficient money: {giftPrice - total:f2} BGN.");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement