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