Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Readonly
//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 { readonly int x=10; readonly int y; readonly int j; //readonly int z= x+y; public Program(int x1) { x=x1; y=x; int z=x; j=z; Console.WriteLine(x); Console.WriteLine(y); Console.WriteLine(z); Console.WriteLine(j); } public static void Main(string[] args) { //Your code goes here Console.WriteLine("Hello, world!"); Program p=new Program(100); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
qw
Dokkan Awaken Calculator 1.1
String concat operation (+) vs StringBuilder
Implementing two interfaces with the same method signature
Informashin prsonely
Heap sort
mo3dal
Using Events/Delegates to Subscribe To A Service - Emails
Creating async methods in C# prior to version 5.0
Problem: on_off
stackse - search stackoverflow differently
Please log in to post a comment.