1. Course
  2. Data types A
  3. Float value

Float value


Last updated: 8/22/2020 Difficulty: Easy

Create a program C# to ask the user for a distance in meters and the time taken (hours, minutes, seconds).

Display the speed, in meters per second, kilometers per hour and miles per hour.

1 mile = 1609 meters.

Input

1200
0
13
45

Output

Speed in meters/sec is 1.454545
Speed in km/h is 5.236363
Speed in miles/h is 3.254421

Solution

Data types A

6 / 8

Android App


Practice C# anywhere with the free app for Android devices.

Android App

Exercises C# by difficulty


Learn C# at your own pace, the exercises are ordered by difficulty.

Advertising