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 ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- double food = double.Parse(Console.ReadLine());
- double souv = double.Parse(Console.ReadLine());
- double hotel = double.Parse(Console.ReadLine());
- double hotel1 = hotel * 0.9;
- double hotel2 = hotel * 0.85;
- double hotel3 = hotel * 0.8;
- double gas = 420 / 100 * 7;
- double gasPr = 29.4 * 1.85;
- double souvfood = 3 * food + 3 * souv;
- double total = gasPr + souvfood + hotel1 + hotel2 + hotel3;
- Console.WriteLine($"Money needed: {total:F2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement