24
1
using System;
2
3
public class Program
4
{
5
public static void Main()
6
{
7
// TODO: Run once and note the resulting output. Then change each line and run again.
8
int add = 9876 + 5432; //change the numbers
9
int subtract = 9876 - 5432; //change the numbers
10
int multiply = 9876 * 5432; //change the numbers
11
int divide1 = 9876/5431; //change the numbers
12
double divide2 = 9876/5431.0; //change the numbers
13
int modulus = 9876 % 5432; //change the numbers
14
String concat = "Hello" + " " + "World"; //change the phrase
15
16
Console.WriteLine("adding: " + add);
17
Console.WriteLine("subtracting: " + subtract);
18
Console.WriteLine("multiplying: " + multiply);
19
Console.WriteLine("dividing integers: " + divide1);
20
Console.WriteLine("dividing doubles: " + divide2);
21
Console.WriteLine("modulus: " + modulus);
22
Console.WriteLine("concatting Strings: " + concat);
23
}
24
}
Cached Result