Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- namespace ConsoleApplication
- {
- internal class Program
- {
- public static void Main(string[] args)
- {
- var first = int.Parse(Console.ReadLine());
- var secound = int.Parse(Console.ReadLine());
- var third = int.Parse(Console.ReadLine());
- var four = int.Parse(Console.ReadLine());
- var total = first*((double)secound/(double)60)+((double)first*1.1)*((double)third/(double)60)+((first*1.1)*0.95)*((double)four/(double)60);
- //Console.WriteLine(first*((double)secound/(double)60));
- //Console.WriteLine(((double)first*1.1)*((double)third/(double)60));
- //Console.WriteLine(((first*1.1)*0.95)*((double)four/(double)60));
- Console.WriteLine("{0:f2}",total);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement