// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; class MainClass { public static void Main(string[] args) { string s = String.Format("linie 1 {0,8}\r\nlinie 2 {1,8}\r\ntotal {2,8}",999, 999.99, 1998.99); Console.WriteLine(s); } }