Home
|
Misc
|
Run Code
|
Code Wall
|
Users
|
Feedback
|
Login
run code
Language:
Assembly
C#
C++
C
Common Lisp
F#
Go
Haskell
Java
Javascript
Lua
Node.js
Objective-C
Pascal
Perl
Php
Prolog
Python
Python 3
Ruby
Scala
Scheme
Sql Server
Visual Basic
Editor:
CodeMirror
EditArea
Simple
//Title of this code //Rextester.Program.Main is the entry point for your code. Don't change it. using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { var ccNo = "1234567812345678"; Console.WriteLine("Last 4 characters={0}", ccNo.Substring(ccNo.Length-4,4)); } } }
Show compiler warnings
[
+
]
Show input
Compilation time: 0.42 sec, absolute running time: 0.55 sec, cpu time: 0.08 sec, average memory usage: 20 Mb, average nr of threads: 3
edit mode
|
history
Last 4 characters=5678