Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Linked Lists
//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) { //Your code goes here Console.WriteLine("Hello, world!"); Node list=new Node(){Data=10,Next=new Node(){Data=20,Next=new Node(){Data=30,Next=null}}}; } public int Length(Node list) { int len=0; While(list!=null) { len=len+1; list=list.Next; } return len; } } public class Node { public int Data{get;set;} public Node Next{get;set;} } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Pet Name Generator
Unturned_Plugins
Program
ElaineBrown**
Weird behaiour of conditional operator
Count occurences of Character
axasxasd
Hi
sortowania przez wstawienie Correct
Boggle
Please log in to post a comment.