Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace exampreparation
- {
- class Program
- {
- static void Main(string[] args)
- {
- int rent = int.Parse(Console.ReadLine());
- double statuettes = rent * 0.70;
- double catering = statuettes * 0.85;
- double sounding = catering * 0.5;
- double fullSum = rent + statuettes + catering + sounding;
- Console.WriteLine($"{fullSum:f2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement