Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace MiningRig
- {
- class Program
- {
- static void Main(string[] args)
- {
- double videosPrice = double.Parse(Console.ReadLine()) * 13;
- double cablesPrice = double.Parse(Console.ReadLine()) * 13;
- double powerPerDay = double.Parse(Console.ReadLine()) * 13;
- double profitPerDay = double.Parse(Console.ReadLine()) * 13;
- double computerPrice = videosPrice + cablesPrice + 1000;
- Console.WriteLine(computerPrice);
- Console.WriteLine(Math.Ceiling(computerPrice / (profitPerDay - powerPerDay)));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement