Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Converter
- {
- class Program
- {
- static void Main(string[] args)
- {
- double input = double.Parse(Console.ReadLine());
- double i = Math.Floor(282.5 / input);
- int result = i.intValue();
- Console.WriteLine($"{result} litres per 100 km");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement