Question: C# please with screan shot using system; 1/ Program Lab1C.cs public class Lable 1) Calculates fuel efficiency based on values entered by the user. public
using system; 1/ Program Lab1C.cs public class Lable 1) Calculates fuel efficiency based on values entered by the user. public static void Main (String[] args) int miles; double gallons, mpg; Console. Write ("Enter the number of miles: "); miles = Convert.ToInt32 (Console.ReadLine ()) ; Console. Write ("Enter the gallons of fuel used: "); gallons = Convert. ToInt 32 (Console.ReadLine ()) ; mpg = miles * gallons ; Console. Writeline ("Miles Per Gallon: " + mpg); 1 )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
