Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Data_Type
- {
- class Program
- {
- static void Main(string[] args)
- {
- int yield = int.Parse(Console.ReadLine());
- int total = yield - 26;
- int days = 1;
- for (int i = yield-10; i >=100; i=i-10)
- {
- days++;
- int byDay = i - 26;
- total += byDay;
- }
- Console.WriteLine($"{days}\n{total-26}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment