Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading;
- namespace Application
- {
- class MainClass
- {
- public static void Main(string[] args)
- {
- string Navn = "Henrik Ole Andersen";
- string tegn = "";
- int pos = 0;
- string Fornavn = "";
- int Last_Pos = Navn.Length - 1;
- do
- {
- tegn = Navn.Substring(pos, 1);
- pos++;
- Console.WriteLine(tegn);
- Thread.Sleep(300);
- Fornavn = Fornavn + tegn;
- }
- while (tegn != " ");
- int posA = pos - 1;
- Console.WriteLine("Fornavn");
- Console.WriteLine(posA);
- Console.WriteLine(Last_Pos);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement