Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _01._Mining_rig
- {
- class Program
- {
- static void Main(string[] args)
- {
- int priceVideoCard = int.Parse(Console.ReadLine());
- int priceCable = int.Parse(Console.ReadLine());
- double elPriceForDay = double.Parse(Console.ReadLine());
- double profitForDay = double.Parse(Console.ReadLine());
- double totalVideoCards = priceVideoCard * 13;
- double totalCable = priceCable * 13;
- double moneySpent = totalCable + totalVideoCards + 1000;
- Console.WriteLine(moneySpent);
- double totalProfitForDay = profitForDay - elPriceForDay;
- double totalProfit = totalProfitForDay * 13;
- double daysMoneyReturn = moneySpent / totalProfit;
- Console.WriteLine(Math.Ceiling(daysMoneyReturn));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement