Division of two numbers Learn programming with C# Sharp exercises

Lesson:

First contact with C# Sharp


Exercise:

Division of two numbers 66


Objetive:

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


Code:

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