daily pastebin goal
9%
SHARE
TWEET

Untitled

a guest Mar 25th, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp13
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Alku:
  14.             String Username = "Marko";
  15.             String Pass = "kala";
  16.  
  17.            
  18.             Console.WriteLine("Anna käyttäjänimi:");
  19.             Username = Console.ReadLine();
  20.  
  21.             Console.WriteLine("Anna Salasana:");
  22.             Pass = Console.ReadLine();
  23.  
  24.             if (Username == "Marko" && Pass == "kala")
  25.             Console.WriteLine("Okein !");
  26.             else
  27.             {
  28.                 Console.WriteLine("Ooobs ! Try again ?");
  29.                 string vastaus;
  30.                
  31.                 vastaus = Console.ReadLine();
  32.                 if (vastaus == "yes")
  33.                     goto Alku;  
  34.             }
  35.         }
  36.     }
  37. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top