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 ConsoleApplication2
- {
- class Program
- {
- static void Main(string[] args)
- {
- var godina = Console.ReadLine();
- int praznici = int.Parse(Console.ReadLine());
- int weekendrodengrad = int.Parse(Console.ReadLine());
- int weekendsofia = 48 - weekendrodengrad;
- double igrisofia = weekendsofia * 3.0 / 4;
- int igrirodengrad = weekendrodengrad;
- double igripraznik = praznici * 2.0 / 3;
- double igri = igrisofia + igrirodengrad + igripraznik;
- if (godina=="normal")
- Console.WriteLine(Math.Truncate(igri));
- else if (godina=="leap")
- {
- igri=igri+igri*0.15;
- Console.WriteLine(Math.Truncate(igri));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment