Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace VladiTest
- {
- class Program
- {
- static void Main(string[] args)
- {
- int kmPerHour = int.Parse(Console.ReadLine());
- double fuel = double.Parse(Console.ReadLine());
- double travelTime = Math.Ceiling((384400 * 2.0) / kmPerHour);
- int totalTime = (int)travelTime + 3;
- double totalFuel = (fuel * (384400 * 2)) / 100.0;
- Console.WriteLine(totalTime);
- Console.WriteLine(totalFuel);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement