Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
page 2
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { int value1 = 43, value2 = 10, sum, diff, product, quotient, remainder; sum = value1 + value2; diff = value1 - value2; product = value1 * value2; quotient = value1 / value2; remainder = value1 % value2; Console.WriteLine("The sum of {0} and {1} is {2}", value1, value2, sum); Console.WriteLine("The difference between {0} and {1}" + "is {2}", value1, value2, diff); Console.WriteLine("The product of {0} and {1} is {2}", value1, value2, product); Console.WriteLine("{0} divided by {1} is {2}", value1, value2, quotient); Console.WriteLine("and the remainder is {0}", remainder); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
4. Inheritance
123
Random number guessing game v1
Extension Method Sample
Wild West of Meming
HelloWorld
Distinct of the given array with each element occurence
Customised Code Dashboard
string concat
IEnumerable visibility of bag
Please log in to post a comment.