Advertisement
Spocoman

Mining Rig

Nov 26th, 2021
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 KB | None | 0 0
  1. using System;
  2.  
  3. namespace MiningRig
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double videosPrice = double.Parse(Console.ReadLine()) * 13;
  10.             double cablesPrice = double.Parse(Console.ReadLine()) * 13;
  11.             double powerPerDay = double.Parse(Console.ReadLine()) * 13;
  12.             double profitPerDay = double.Parse(Console.ReadLine()) * 13;
  13.  
  14.             double computerPrice = videosPrice + cablesPrice + 1000;
  15.  
  16.             Console.WriteLine(computerPrice);
  17.             Console.WriteLine(Math.Ceiling(computerPrice / (profitPerDay - powerPerDay)));
  18.         }
  19.     }
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement