Division of two numbers Learn programming C#

Lesson:

First contact with C# Sharp


Exercise:

Division of two numbers


Objetive:

Write a C# program to print the result of dividing 24 by 5 on the screen.


Code:

using System;
public class Exercise3
{
    public static void Main()
    {
        System.Console.WriteLine(24 / 5);
    }
}

Juan A. Ripoll - Systems Tutorials and Programming Courses ©  All rights reserved.  Legal Conditions.