Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
[REDACTED] database V0.1
//Microsoft (R) Visual C# Compiler version 3.4.0-beta4-19562-05 (ff930dec) //Copyright (C) Microsoft Corporation. All rights reserved. using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Wxlfiesdatabase { public static void Main() { string username, password; int ctr = 0; Console.Write("\n\n Diegos's stuff\n"); Console.Write(" Enter username and password\n"); Console.Write("------------------------------------------------------\n"); do { Console.Write("Input a username: "); username = Console.ReadLine(); Console.Write("Input a password: "); password = Console.ReadLine(); if(username != "user" || password != "pass") ctr++; else ctr=1; } while((username != "user" || password != "pass") && (ctr != 3)); if (ctr == 3) Console.Write("\nfailed Try later!\n\n"); else Console.Write("\nThe password entered successfully!\n\n"); string myText="Loading database..."; for(int i=0;i<myText.Length;i++) { Console.Write(myText[i]); System.Threading. Thread.Sleep(50); } Console.Clear(); Console.WriteLine("Sucsessfully loaded database"); Console.WriteLine("What will it be today?"); } } }
run
|
edit
|
history
|
help
0
2.1 Basic types: Lists and Linq beauty
Encode URl C#
JagArray
test
Non-User input - Random Controlled - Guessing Game
DAY !
6. Parallelism: threads
Fibonacci and finding nth fibo number
Game_snake
Planet-D ver. 0.7