Dee Walker

Dee Walker

  • NA
  • 43
  • 11.2k

Help with a Program Method

Nov 4 2017 9:58 AM

I need help making a program whose Main() method prompts a user for a number of miles, passes the value to a method that converts the value to kilometers, and then returns the value to the Main() method where it is displayed. A mile is 1.60934 kilometers. Here is what i have to start:

 
using System;
using static System.Console;
class ConvertMilesToKilometers
{
static void Main()
{
.
}
public static double ConvertToKilometers(double miles)
{
}
}
 
 

Answers (3)