Advertisement
Guest User

Fra Bilal Erdogan

a guest
Nov 16th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.86 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading;
  6.  
  7. namespace Application
  8. {
  9.     class MainClass
  10.     {
  11.         public static void Main(string[] args)
  12.         {
  13.  
  14.             string Navn = "Henrik Ole Andersen";
  15.             string tegn = "";
  16.             int pos = 0;
  17.             string Fornavn = "";
  18.             int Last_Pos = Navn.Length - 1;
  19.  
  20.             do
  21.             {
  22.                 tegn = Navn.Substring(pos, 1);
  23.                 pos++;
  24.                 Console.WriteLine(tegn);
  25.                 Thread.Sleep(300);
  26.                 Fornavn = Fornavn + tegn;
  27.             }
  28.  
  29.             while (tegn != " ");
  30.             int posA = pos - 1;
  31.  
  32.             Console.WriteLine("Fornavn");
  33.             Console.WriteLine(posA);
  34.             Console.WriteLine(Last_Pos);
  35.  
  36.  
  37.         }
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement