Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Footbal
- {
- class Program
- {
- static void Main(string[] args)
- {
- var partProject = double.Parse(Console.ReadLine());
- var MoneyReward = double.Parse(Console.ReadLine());
- double points = 0;
- for (int i = 1; i <= partProject; i++)
- {
- var countPoints = double.Parse(Console.ReadLine());
- if (i % 2 == 0)
- {
- points = points + (countPoints * 2);
- }
- else
- {
- points = points + countPoints ;
- }
- }
- var reward = points * MoneyReward;
- Console.WriteLine($"The project prize was {reward:f2} lv.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment