1
Answer

Help with a Program Method

Dee Walker

Dee Walker

7y
164
1

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 (1)