Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- using System.Collections.Generic;
- namespace exampreparation
- {
- class exam
- {
- static void Main(string[] args)
- {
- int startYield = int.Parse(Console.ReadLine());
- int days = 0;
- int storage = 0;
- while (startYield > 100)
- {
- days++;
- storage += startYield - 26;
- startYield -= 10;
- }
- storage -= 26;
- Console.WriteLine(days);
- Console.WriteLine(storage);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement