//Numbersinta=7;intb=4;intc=3;intd=(a+b)/c;inte=(a+b)%c;Console.WriteLine($"quotient: {d}");Console.WriteLine($"remainder: {e}");intmax=int.MaxValue;intmin=int.MinValue;Console.WriteLine($"The range of integers is {min} to {max}");/* quotient: 3 remainder: 2 The range of integers is -2147483648 to 2147483647 */doublea=19;doubleb=23;doublec=8;doubled=(a+b)/c;Console.WriteLine(d);doublemax=double.MaxValue;doublemin=double.MinValue;Console.WriteLine($"The range of double is {min} to {max}");doublea=1.0;doubleb=3.0;Console.WriteLine(a/b);decimalc=1.0M;decimald=3.0M;Console.WriteLine(c/d);
Strings
//String VariablesstringaFriend="Bill";Console.WriteLine(aFriend);Console.WriteLine("Hello "+aFriend);Console.WriteLine($"Hello {aFriend}");stringfirstFriend="Maria";stringsecondFriend="Sage";Console.WriteLine($"My friends are {firstFriend} and {secondFriend}");