C# C# Basics If Statements "if" Statements

Chukwunonso Emmanuel
PRO
Chukwunonso Emmanuel
Pro Student 3,046 Points

im stuck

(Just use Console.WriteLine; CheckSpeed will not return a value for this challenge.)

Program.cs
using System;

class Program
{

    static void CheckSpeed(double speed)
    {
        // YOUR CODE HERE
    }

    static void Main(string[] args)
    {
        // This won't print anything.
        CheckSpeed(53);
        // This should print "too fast".
        CheckSpeed(88);
    }

}

1 Answer

fdimas
fdimas
7,227 Points

write and "if" statement that checks the parameter passed in for "speed", if it's over 55 write a WriteLine method to print out the string "too fast". Not sure if that helps without giving away the answer too much. : ]