Monday, March 21, 2016

Exercise 4: Variables And Names

Exercise 4: Variables And Names

inspired by  http://learnpythonthehardway.org/book/ex4.html

using System;

public class Test
{
     public static void Main()
     {
           int cars, drivers, cars_not_driven;
           cars = 100;
           drivers = 30;
           cars_not_driven = cars - drivers;
          Console.WriteLine("There will be " + cars_not_driven + " empty cars today.");
     }
}

No comments:

Post a Comment