Console I/O

In this stage we’ll start to code FitnessFrog. We’ll learn how to interact with users via the console.


Thinking about writing an entire software problem can be daunting, and it is sometimes hard to know where to begin.

Designing software is really all about taking large problems and splitting them into smaller problems, until you get something that's more managable.

Let's start!

Try run the code below.

namespace ConsoleApp1
{
    class Program
    {
        static void Main()
        {
            // Prompt the for minutes exercised
            System.Console.Write("Enter how many minutes you exercised");

            // Add minutes exercised to a running total
            // Display the running total in minutes
            // Ask repeatedly until user quits
        }
    }
}

You've just compiled and ran your first C# program.

results matching ""

    No results matching ""