Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ilya
- {
- class MainClass
- {
- public static void Main (string[] args)
- {
- int hour = 2;
- int count = 3; //начальное кол-во голов
- for(int i = 1; i <= hour; i++)
- {
- int d = i == 1 ? 1 : 2 * (i - 1); //урон
- count = (count - d) + 3;
- }
- Console.WriteLine(count);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement