Guest User

Untitled

a guest
Sep 15th, 2019
81
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace Converter
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double input = double.Parse(Console.ReadLine());
  10.  
  11.             double i = Math.Floor(282.5 / input);
  12.             int result = i.intValue();
  13.             Console.WriteLine($"{result} litres per 100 km");
  14.         }
  15.     }
  16. }
RAW Paste Data