Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Moon
- {
- class Program
- {
- static void Main()
- {
- double kmphour = double.Parse(Console.ReadLine());
- double gasper100km = double.Parse(Console.ReadLine());
- double distance = 384400*2;
- double hours = (distance/kmphour)+3;
- double litters = (gasper100km*distance)/100;
- Console.WriteLine(Math.Ceiling(hours));
- Console.WriteLine(litters);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement