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 test
- {
- class Program
- {
- static void Main(string[] args)
- {
- int dancers = int.Parse(Console.ReadLine());
- decimal score = decimal.Parse(Console.ReadLine());
- string season = Console.ReadLine().ToLower();
- string place = Console.ReadLine().ToLower();
- decimal totalscore = 0.00m;
- decimal score1 = 0.00m;
- if (place == "bulgaria")
- {
- totalscore = score * dancers;
- if (season == "summer")
- {
- score1 = totalscore * 0.95m;
- }
- else if (season == "winter")
- {
- score1 = totalscore * 0.92m;
- }
- var cherity = score1 * 0.75m;
- var leftMoney = (score1 - cherity) / dancers;
- Console.WriteLine("Charity - {0:f2}", cherity);
- Console.WriteLine("Money per dancer - {0:f2}", leftMoney);
- }
- else if (place == "abroad")
- {
- totalscore = score * dancers * 1.5m;
- if (season == "summer")
- {
- score1 = totalscore * 0.9m;
- }
- else if (season == "winter")
- {
- score1 = totalscore * 0.85m;
- }
- var cherity = score1 * 0.75m;
- var leftMoney = (score1 - cherity) / dancers;
- Console.WriteLine("Charity - {0:f2}", cherity);
- Console.WriteLine("Money per dancer - {0:f2}", leftMoney);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement