//####### #####
//# # # ##### # # #### # ##### # # #### ##### ###### #####
//# # # # # # # # # # # # # # # # # # #
//##### ## # # # # # # # # # # # # ##### # #
//# ## ##### # # # # # # # # # # # #####
//# # # # # # # # # # # # # # # # # # #
//####### # # # ###### # #### # # ##### #### ##### ###### # #
//***********************************************************************************************************************************
// Project : Simple arithmetic
// Solution : Entry level coding
// Project type : Console application
// Platform : Microsoft.NET 6.00
// Created with : Microsoft Visual Studio Community 2022 (64-bit) Version 17.0.6
// Created : 03/10/2022
// Created By : https://explicitcoder.com
//***********************************************************************************************************************************
// Instructions
// Select this project (Simple arithmetic) from the dropdown box next to the green arrow
// at the top of Visual studio and then click the green play button to start it.
// To stop the program you can either click the close button on the console window or click the red stop button.
//***********************************************************************************************************************************
// Description
// C# can solve maths problems just like a calculator by using the built in arithmetic operators.
// Multiplication operator *
// Division operator /
// Addition operator +
// Subtraction operator -
// Remainder operator %
//***********************************************************************************************************************************
//***********************************************************************************************************************************
// SEE THE WEBSITE FOR MORE INFORMATION https://explicitcoder.com/getting-started
//***********************************************************************************************************************************
namespace Simple_arithmetic
{
class Program
{
static void Main() // The program starts here. Main is the first method called when you run the program.
{
// Addition. Add 18 and 4 and then display the result.
Console.WriteLine( "!8 + 4 = " + (18 + 4));
// Subtraction. Subtract 3 from 12 and then display the result.
Console.WriteLine("12 - 3 = " + (12 - 3));
// Multiplication. Times 10 by 10 and then display the result.
Console.WriteLine("10 * 10 = " + (10 * 10));
// Division. Divide 16 by 4 and then display the result.
Console.WriteLine("16 / 4 = " + (16 / 4 ));
// Remainder. Divide 17 by 4 and then display the remainder.
Console.WriteLine("17 % 4 = " + (17 % 4));
// Without this line the program will end before you have time to see it.
Console.ReadLine();
}
}
}