Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Moon
- {
- class Program
- {
- static void Main(string[] args)
- {
- double avrgSpeed = double.Parse(Console.ReadLine());
- double fuel = double.Parse(Console.ReadLine());
- double totalDistance = 384400*2;
- double totalTime = totalDistance/avrgSpeed;
- totalTime = Math.Ceiling(totalTime);
- double time = totalTime+3;
- time = Math.Round(time);
- double totalFuel = (fuel*totalDistance)/100.0;
- Console.WriteLine (time);
- Console.WriteLine (totalFuel);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement