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;
- namespace @if
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("What is your name?");
- string Name = Console.ReadLine();
- if (Name.ToLower() == "sam")
- {
- Console.WriteLine("Welcome Sam! What is your password?");
- if (Console.ReadLine() == "onlivegamer")
- {
- Console.WriteLine("You have root permissions!");
- }
- else
- {
- Console.WriteLine("Wrong password! Terminating....");
- }
- else if (Name.ToLower() == "jason")
- {
- Console.WriteLine("You have limited permissions");
- }
- Console.ReadLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement