β€Ί

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

BRACKEYS - Solution to C# Tutorial 01 Challenge

BrackeysBrackeys Administrator
edited June 12 in Announcements

Hey everyone!

Here is my solution to the challenge from the C# Tutorial 01 (Basics) video that is out this Sunday.

Hope you had fun with it! ο»ΏπŸ˜€

using System;


namespace My_Awesome_Program
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("A proud knight named...");


            Console.ReadLine();


            Console.WriteLine("...walked into a bar. At the counter he met a...");


            Console.ReadLine();


            Console.WriteLine("...who asked him what he wanted to drink?");


            Console.ReadLine();


            Console.WriteLine("...shouted the knight! The bartender shushed him quickly.");


            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("But it was too late... A dragon ate them both.");


            // Wait before closing


            Console.ReadKey();
        }
    }
}

Comments

  • Please I can't seem to run my programme it keeps on telling me to download the dotnet framework version 4.7 and in the first video I didn't see you download that Please can u help me

  • Please it keeps on telling me this when ever I click (NET: Generate Asset for Build and Debug ) in the command palette

  • Steven_KSteven_K Member

    My answer to your challange:


    using System;


    namespace Start

    {

        class Program

        {

            static void Main(string[] args)

            {

                

                Console.Title = "Challange-01"; 


                Console.WriteLine("Hello, can you tell me my your name?"); 

                Console.ReadLine(); 


                Console.WriteLine("Thats a nice name, my name is Steven. \nWhats your favourite colour?");

                Console.ReadLine();


                Console.WriteLine("Great choise. \nSo you know my name and I want to say something to you. \n\nSorry for my english, because I am from germany and I ever now to learn C# because I can programm in 2D with Java \nand I wanted to start coding in 3D. \n\nPlease make more videos they are great.");



                Console.ReadKey(); 

            }

        }

    }

  • and this is my answer to your challenge:

    using System;


    namespace FirstC_Project

    {

        class Program

        {

            static void Main(string[] args)

            {

                //Basic Setup

                Console.Title = "Ha ha yes a bretty bad story";

                Console.BackgroundColor = ConsoleColor.DarkMagenta;

                Console.ForegroundColor = ConsoleColor.Yellow;

                Console.WindowHeight = 60;


                //Some Stings and integers

                string Name, Input, Object, Desease, Sentence, Item;

                int Age;


                //The questions

                Console.WriteLine("A random name Pls");

                Name = Console.ReadLine();

                Console.WriteLine("Something yummeh");

                Object = Console.ReadLine();

                Console.WriteLine("A soft boii");

                Item = Console.ReadLine();

                Console.WriteLine("Ya age please");

                Input = Console.ReadLine();

                Age = Convert.ToInt32(Input);

                Console.WriteLine("Haha yes a desease");

                Desease = Console.ReadLine();

                Console.WriteLine("Funny sentence lol");

                Sentence = Console.ReadLine();

                Console.WriteLine("");


                //The Story

                Console.WriteLine(Name + " is a Dumb boii.");

                Console.WriteLine(Name + " Jumped into " + Item);

                Console.WriteLine("One day, " + Name + " saw two " + Object + "s");

                Console.WriteLine("He ate the " + Object + "s. He got the desease " + Desease + ".");

                Console.WriteLine("");

                Console.WriteLine("R.I.P " + Name);

                Console.WriteLine("He died because of " + Desease + " at a age of " + Age + ".");

                Console.WriteLine("His last words were: " + Sentence);

                Console.ReadKey();

            }

        }

    }


    pretty good story XD

  • Mineplayer524Mineplayer524 Member
    edited June 16

    this is my answer of your challange:


    using System;


    namespace my_awsome_program

    {

        class Program

        {

            static void Main(string[] args)

            {

                //Setup

    Console.Title = "The Story Maker";

                Console.ForegroundColor = ConsoleColor.Green;

                Console.WindowHeight = 40;

                Console.WriteLine("HI I'm sorry for my english...\nI'm from Italy so i'm not that godd at it but enjoy!!");

                Console.ForegroundColor = ConsoleColor.Gray;

    // The varabiles for the story

                string Name, Name2, Object, scream, Sentence, Nemesis, Food;

                //those are the questions

                Console.WriteLine("Hi I'm Tom and this is a story maker\n\nFirsto tell me a name.");

                Name = Console.ReadLine();

                Console.WriteLine("ok tell me a second name for a friend.");

                Name2 = Console.ReadLine();

                Console.WriteLine("Now tell me a weapon.");

                Object = Console.ReadLine();

                Console.WriteLine("ok now a enemy (like your nemesis).");

                Nemesis = Console.ReadLine();

                Console.WriteLine("now tell me a battle cry.");

                scream = Console.ReadLine();

                Console.WriteLine("some stupid things for the last word of your enemy.");

                Sentence = Console.ReadLine();

                Console.WriteLine("tell me a food.");

                Food = Console.ReadLine();

                Console.WriteLine("loading....\n\nready for busness!! press a button to start!\n\n");

                Console.ReadKey();


                //The final product

                Console.WriteLine(Name + " was going to his friend " + Name2 + ".");


                Console.WriteLine(Name + " found "+ Name2 + " but it was captured by " + Nemesis + ".");


                Console.WriteLine("so " + Name + " pick a " + Object + " and yelled " + scream);


                Console.WriteLine("after that " + Name + " killed " + Nemesis + ".");


                Console.WriteLine("But before dying " + Nemesis + " sad " + Sentence + ".");


                Console.WriteLine(Name2 + " sad :  finally! you killed your nemesis! now let's go home and eat " + Food + ".");


                Console.ReadKey();


            }


        }


    }

  • This is my answer on the challenge before opening the forum


    using System;


    namespace Programming

    {

        class Program

        {

            static void Main(string[] args)

            {

                // The title of the program and the bg color

                Console.Title = "Quest";


                //Color of the narrator

                Console.BackgroundColor = ConsoleColor.White;

                Console.ForegroundColor = ConsoleColor.Black;


                Console.WriteLine("A young traveler walks into the bar and the mysterious old man approaches him.");


                //color of the old man

                Console.BackgroundColor = ConsoleColor.Black;

                Console.ForegroundColor = ConsoleColor.White;


                Console.WriteLine("Ah, a young traveler. What is your name?");


                //color of the player

                Console.ForegroundColor = ConsoleColor.Yellow;


                //to make the console remember the name and the companion

                String Name,companion;


                Name = Console.ReadLine();


                Console.ForegroundColor = ConsoleColor.White;


                Console.WriteLine("Ah, What a nice name. Come, join me here, let's drink, don't worry I'll pay for you.");


                Console.BackgroundColor = ConsoleColor.White;

                Console.ForegroundColor = ConsoleColor.Black;


                Console.WriteLine(Name+" sits down with the old man.");


                Console.BackgroundColor = ConsoleColor.Black;

                Console.ForegroundColor = ConsoleColor.White;


                Console.WriteLine("So tell me " +Name+ ", why are you here?");


                Console.ForegroundColor = ConsoleColor.Yellow;


                Console.ReadLine();


                Console.ForegroundColor = ConsoleColor.White;


                Console.WriteLine("Ah, That is interesting.");


                Console.BackgroundColor = ConsoleColor.White;

                Console.ForegroundColor = ConsoleColor.Black;


                Console.WriteLine("The old man gave " +Name+ " a piece of paper.");


                Console.BackgroundColor = ConsoleColor.Black;

                Console.ForegroundColor = ConsoleColor.White;


                Console.WriteLine("Here " +Name+ " , That is the map of your quest, quick, complete the quest now. \nSadly I can't go with you because I am too old and you look like you are the only human that will do anything.");


                Console.BackgroundColor = ConsoleColor.White;

                Console.ForegroundColor = ConsoleColor.Black;


                Console.WriteLine(Name+" accepts the quest. \nA dragon lands on the bar and the dragon tell the young traveler.");


                //color of the dragon

                Console.BackgroundColor = ConsoleColor.Black;

                Console.ForegroundColor = ConsoleColor.Green;


                Console.WriteLine(Name+ " , I came here to help you, just imagine one companion and you will have it.");


                Console.ForegroundColor = ConsoleColor.Yellow;


                companion = Console.ReadLine();


                Console.BackgroundColor = ConsoleColor.White;

                Console.ForegroundColor = ConsoleColor.Black;


                Console.WriteLine("Suddenly a genie came by and said.");


                Console.BackgroundColor = ConsoleColor.Black;

                Console.ForegroundColor = ConsoleColor.Blue;


                //color of the genie

                Console.WriteLine("You will not complete your quest, and now you will die.");


                Console.BackgroundColor = ConsoleColor.White;

                Console.ForegroundColor = ConsoleColor.Black;


                Console.WriteLine(Name+ " and his/her " +companion+ " fights the genie, and the genie gets angry");


                Console.BackgroundColor = ConsoleColor.Black;

                Console.ForegroundColor = ConsoleColor.Blue;


                Console.WriteLine("That's enough, the fun is over and now you will die.");


                //color red

                Console.BackgroundColor = ConsoleColor.White;

                Console.ForegroundColor = ConsoleColor.Red;


                Console.WriteLine("The genie snaps his hand and " +Name+" Turned to dust.");


                Console.ReadKey();


            }

        }

    }


    Hope you like it :)

  • PraimusPraimus Member

    This is my version

    using System;


    namespace cOURSE

    {

      class Program

      {

        static void Main(String [] args)

        {

          Console.Title = "A Story";

          Console.WriteLine("There was a boy named ...");

          Console.ReadLine();


          Console.WriteLine("Destined to be a ...");

          Console.ReadLine();


          Console.WriteLine("His parents were killed by ...");

          Console.ReadLine();


          Console.WriteLine("Who gave him a lightning ...");

          Console.ReadLine();

          

          Console.WriteLine("");

          Console.ForegroundColor = ConsoleColor.DarkRed;

          Console.WriteLine("Congratulations");

          Console.ForegroundColor = ConsoleColor.White;

        }

      }

    }

    Hope ya like it PotterHeads

  • //My Response to your challenge



    using System;

    using System.Threading;


    namespace Test_Program

    {

        class Program

        {//Design

            static void Main(string[] args)

            {

    Console.Title = "Made By HFO Studios";

    Console.ForegroundColor = ConsoleColor.White;

    Console.WindowHeight = 40;

               //Conversation

                Console.WriteLine("Lets start a conversation! What is your name?");

    //EXG: Mark

                Console.ReadLine();


                Console.WriteLine("Nice name! My name is Ramsay! I am an AI Cook from the future..");

    //User says Where is the **mn lamb sauce?!

                Console.ReadLine();


                Console.WriteLine("Ha Ha Very Funny.. \n Anyways I can tell you about the future would you like to know anything?");

    //User Replies "Yes"/"Y"

                Console.ReadLine();


                Console.WriteLine("what would you like me to tell you about?");

    //User asks how mankind recovers from Covid-19

                Console.ReadLine();


                Console.WriteLine("Yes, \n \n I can but I don't think you would like to hear the outcome are you sure?");

    //User is sure they want to hear some slight detail on what happens to mankind.

                Console.ReadLine();


                Console.WriteLine("Covid was your first of many problems \n It took decades for mankind to recover from.. \n However whilst the world was in hiding something much more insidious was being planned... \n Would you like to hear more?");

    //User Would Not Like to Hear More

                Console.ReadLine();


                Console.WriteLine("Your choice.. \n You may now press any key to close me see you soon.. \n Or not--");


                Console.ReadLine();


                Thread.Sleep(3000); 


                Console.ReadKey();


            }

        }

    }

  • using System;

    //Challenge 01

    namespace Brackeys_C__Tutorial

    {

        class Program

        {

            static void Main(string[] args)

            {

                //Change appearance 


                Console.Title = "Rasputin";

                Console.ForegroundColor = ConsoleColor.Green;

                Console.WindowHeight = 40;


                Console.WriteLine("He heard a voice."); 

                

                Console.ForegroundColor = ConsoleColor.White;

                

                Console.WriteLine("Eyes up Guardian it said. \nSlowly the Guardian began to open his eyes and looked up at the strange machine.");

                

                Console.ForegroundColor = ConsoleColor.Blue;

                Console.WriteLine("Who are you? he asked");


                Console.ForegroundColor = ConsoleColor.White;

                Console.WriteLine("I'm a Ghost, What is your name Guardian?");

                Console.ForegroundColor = ConsoleColor.Blue;

                Console.ReadLine();


                Console.ForegroundColor = ConsoleColor.White;

                Console.WriteLine("Come with me, quickly before the Fallen arrive. Do you know how to use a gun?");


                Console.ForegroundColor = ConsoleColor.Blue;

                Console.ReadLine();


                Console.ForegroundColor = ConsoleColor.White;

                Console.WriteLine("It doesn't matter either way, they're already here...");

                Console.WriteLine("Where are you from?");


                Console.ForegroundColor = ConsoleColor.Blue;

                Console.ReadLine();


                Console.ForegroundColor = ConsoleColor.Red;

                Console.WriteLine("Well let's hope you live long enough to see it again...");

                

                Console.ReadKey();


            

                  


                


            }

        }

    }

  • N_TN_T Member
    edited June 19

    My answer is:


    using System;


    namespace eyeyeyeyyeye

    {

      class Program

      {

        static void Main(string[] args)

        {

           

          Console.Title = "The story of a fine tavern";

          //Name and size because thats what it does

          

          Console.WindowHeight = 40;


          Console.WriteLine("Once, a man named...");


          Console.ReadLine();


          Console.WriteLine("...entered a small tavern in West Connecticut. There, the waiter asked for a meal, and he said...");

          Console.ReadLine();


           


          Console.WriteLine("...the waiter said that he 'honestly wouldn't recommend that.' ");


          Console.ForegroundColor = ConsoleColor.Red;

          Console.WriteLine("The waiter then revealed that he was not a waiter. He was just some guy.");

          Console.ReadKey();



        }

      }

    }



    (yes i named the file eyeyeyeye, i couldn't think of anything so i just pressed buttons)

  • AQWOLFAQWOLF Member

    Console.WindowHeight = 40;

                Console.BackgroundColor = ConsoleColor.White;

                Console.ForegroundColor = ConsoleColor.DarkGreen;

                Console.WriteLine("HI. What is your hero name?");


                Console.ReadLine();

                Console.ForegroundColor = ConsoleColor.DarkYellow;

                Console.WriteLine("nice!. now i will tell you the story.\n once i was a kid and a dragon kill my friend soo my goal is to kill him but how?\n 1. kill with fire ball\n 2. kill with a sword ");

                

                Console.ReadLine();

                Console.ForegroundColor = ConsoleColor.DarkBlue;

                Console.WriteLine("ok! that nice but he hit you back what you gonna do \n 1. ff \n 2. hit him beck");


                Console.ReadLine();


                 Console.ForegroundColor = ConsoleColor.Green;            

                Console.WriteLine("niceee! you win ");


                Console.ReadKey();πŸ˜€

    thanks you soooooo much for the help i wonder if tghe next ep gonna be the "if" becuse its soo much fin thanks you <3

  • Hello Brackeys I know it's late but I want to learn too, here is my Story maker:


    using System;


    namespace StoryApp

    {

      class Program

      {

        static void Main(string[] args)

        {

          //Title of the Program.

          Console.Title = "StoryApp";


          //Color of the Text in the Console.

          Console.ForegroundColor = ConsoleColor.Green;


          //The console will write the text inside of the parrenthesis and the "".

          Console.WriteLine("Welcome! This a Story Creation tool. You will add key parts in order to create a Story" + Environment.NewLine);



          //Creating strings and variables.

          string Name, Enemy, HealingObject, Weapon;


          //Asking the key objects of the Story and providing flow to the story creation process.

          Console.WriteLine("First you will need to give a name to the Main Character. Please write it below." + Environment.NewLine);

          Name = Console.ReadLine();

          Console.WriteLine();


          Console.WriteLine("So his/her name is: " + Name + Environment.NewLine + " I think that is a very interesting one. Thank you!" + Environment.NewLine);


          Console.WriteLine("Now we need the name of the villain of your Story. Go ahead, be creative!" + Environment.NewLine);

          Enemy = Console.ReadLine();


          Console.WriteLine(Environment.NewLine + "So the Villain is called: " + Enemy + Environment.NewLine + "What a name! Sounds pretty dangerous to me." + Environment.NewLine);


          Console.WriteLine("Now we need a Healing Object. Think of something unique!" + Environment.NewLine);

          HealingObject = Console.ReadLine();

          Console.WriteLine();


          Console.WriteLine("Oh... not THAT unique but it's ok it will do the job." + Environment.NewLine);


          Console.WriteLine("QUICK! Name a weapon! Anything!!!" + Environment.NewLine);

          Weapon = Console.ReadLine();

          Console.WriteLine();


          Console.WriteLine(Weapon + "?" + Environment.NewLine + "Oh! what a... weird weapon? Is that even a Weapon?" + Environment.NewLine);


          Console.WriteLine("Now it's time to see the Story. Are you ready? Press Enter if you are.");

          Console.WriteLine();

          Console.WriteLine();

          Console.WriteLine();

          while (Console.ReadKey().Key != ConsoleKey.Enter);


          Console.WriteLine(Name + " was on his quest looking for some dragons to kill." + Environment.NewLine);

          Console.WriteLine("But " + Name + "'s " + Weapon + " was stolen by " + Enemy + ".");

          Console.WriteLine(Name + " got mad and punched " + Enemy + " on his/her face!!!" + Environment.NewLine);

          Console.WriteLine(Enemy + " used " + Name + "'s own " + Weapon + " to hurt " + Name + "." + Environment.NewLine);

          Console.WriteLine("But! " + Name + " used " + HealingObject + " to heal himself! what a nice move!!" + Environment.NewLine);

          Console.WriteLine(Name + " punched " + Enemy + " again on his/her face knocking him/her off and finally recovering the " + Weapon + "." + Environment.NewLine);

          Console.WriteLine(Name + " tried to keep looking for dragons but it was too late and " + Name + " went back home." + Environment.NewLine);


          Console.WriteLine();

          Console.WriteLine("I hope you liked the Story. Thank you for participating on this Story maker!!! You have a great imagination.");

          Console.WriteLine("Now press Enter to exit the Story creation tool...");

          while (Console.ReadKey().Key != ConsoleKey.Enter);




        }

      }

    }

  • Hey Guys im a rookie at coding but thanks to Brackeys i can code a little Please take a look at my code.. Dont Judge me haha

    using System;



    namespace My_Awesome_Program

    {

        class Program

        {

            static void Main(string[] args)

            {

                Console.Title = "THE WORST DAY OF MY LIFE"; 

                Console.ForegroundColor = ConsoleColor.Green;

                Console.WindowHeight = 20;

                 

                 ///My Story

                Console.WriteLine("Hey Kid What are you doing in this street?");

                Console.ReadLine();

                Console.WriteLine("This Place is not for children it's for thugs so please go home and don't come here.");

                Console.ReadLine();

                Console.WriteLine("RUN!!!!!!!!!!!!!!!!");

                Console.ReadLine();

                Console.WriteLine("The Thugs are behind you \nRun for your life!!!");

                Console.ReadLine();

                Console.WriteLine("SuperHero Screams = Don't Worry Young Boy I'll save you");

                Console.ReadLine();

                Console.WriteLine("SuperHero says = Don't Worry i can beat these guys...");

                Console.ReadLine();

                Console.WriteLine("SuperHero says = Yes, that is right I'm All Might");

                Console.ReadLine();

                Console.WriteLine("Kid goes home = Mom i will never go out again....");

                Console.ReadLine();

                ///Dont Judge me pls im bad at making stories.

             

            }

        }

    }

  • SwastikBiswasSwastikBiswas Member
    edited June 23

    Hey everyone! Here's my submit for the challenge!Sorry I'm a bit late; I couldn't install VSCode. Hope this went good...πŸ‘οΈ

    using System;

    namespace myPrograms:)

    {

    class aStoryToBeForgotten

    {

    static void Main()

    {

    Console.WriteLine("Once was a game developing lieutenant named...");

    Console.ReadLine(); //I'd prefer if someone typed Brackeys here...

    Console.WriteLine("... who was the head of the C# squad. But then one day, a ...");

    Console.ReadLine();

    Console.WriteLine("... came and challenged him to a coding challenge!");

    Console.WriteLine("Lieutenant thought for a while and said ... \"");

    Console.ReadLine();

    Console.WriteLine("...\" and so, began the challenge!");

    Console.WriteLine("Both were coding like petabytic beasts, and finally, on ...");

    Console.ReadLine();

    Console.WriteLine("..., the winner was to be decided; but alas...");


    //Last dead-line marking colour change

    Console.ForegroundColor = ConsoleColor.Red;


    Console.WriteLine("All computers crashed, and there was no backup. Damn!");

    Console.ReadKey();

    }

    }

    }


  • namespace plansforworlddomination

    {

        class Program

        {

            static void Main(string[] args)

            {

                //this is to write comments.REMEMBER TO SPACE THINGS


                Console.Title = "Bean 2000";//this is to give titles

                Console.BackgroundColor = ConsoleColor.Black; //this is to changecolor

                Console.ForegroundColor = ConsoleColor.Blue;

                Console.WindowHeight = 32;// this is to change height you can also change width

              

                 Console.WriteLine("Good morning. It's a beautiful day here in Nairobi Today\nMy name is beanOS\nI am a program built by braison on Thursday 25 June of 2020");


                 Console.WriteLine("\nWhat is your name?"); //this is for the text the console outputs


                Console.ReadLine(); //this is for the text the user will input

                

                Console.WriteLine("\nMy purpose is to tell a story\nHere it is:");


                Console.WriteLine("\nThe fruit called...");


                Console.ReadLine();


                Console.WriteLine("can only survive on the tropical islands of...");


                Console.ReadLine();


                Console.WriteLine("\nFurthermore it has a peculiar...");


                Console.ReadLine();


                Console.WriteLine("When the fruit is...");


                Console.ReadLine();


                Console.WriteLine("it turns a vivid shade of...");


                Console.ReadLine();


                Console.WriteLine("and when it is eaten raw it causes one to...");


                Console.ReadLine();

                

                Console.WriteLine("\nand that is the account of this freaky fruit");


                Console.WriteLine("So beware of this bizarre berry, for you have been warned");


                Console.WriteLine("\n\nRemember to have a good day and smile ");


                Console.ReadKey();//this has to be there at the end of program.

            }

        }

    }

  • edited June 26

    @Calculus111 Will you see the first video? if u cannot understand then see the screen shots below.

    Click on the link https://dotnet.microsoft.com/


  • using System;


    namespace bebeman

    {

        class Program

        {

            static void Main(string[] args)

            {


                // changed appearance of console 

                Console.Title = "TheStoryofBebeMan";

                Console.BackgroundColor = ConsoleColor.DarkRed;

                Console.ForegroundColor = ConsoleColor.White;

                Console.WindowHeight = 10;

                

                //building comments with the ai "bebeman."


                Console.WriteLine("He finally arrived at his destination. The young traveler named...");

                Console.ReadLine();

                Console.WriteLine("pulled out his");

                Console.ReadLine();

                Console.WriteLine("and with a great vigor yelled out at the top of his lungs");

                Console.ReadLine();

                Console.WriteLine("Victorious. He decided to head home... to play some overwatch");


                

            }

        }

    }

  • namespace AboutBogyMan

    {

    class Program

    {

    static void Main(string[] args)

    {

    Console.Title = "AbBabaYaga!";

    Console.WriteLine("please help me! please hide me .");

    Console.ReadLine();


    //What happened? relax.


    Console.ForegroundColor = ConsoleColor.DarkYellow;

    Console.WriteLine("He is comming");

    Console.ReadLine();


    //Who is comming ? just relax take a glass of water!


    Console.ForegroundColor = ConsoleColor.DarkGreen;

    Console.WriteLine("BabaYaga is coming");


    //Who is Babayaga?


    Console.ReadLine();

    Console.ForegroundColor = ConsoleColor.DarkGreen;

    Console.WriteLine("Jhon Wick! Jhon wick is after me");

    Console.ReadLine();


    //Who the fuck is Jhon wick then?


    Console.ForegroundColor = ConsoleColor.DarkRed;

    Console.WriteLine("The one who kill three men in a bar... with a pencil.");

    Console.WriteLine("WITH A FUCKING PENCIL");

    Console.ReadLine();


    //ohh then run I can not save you.

    }

    }

    }

  • BansiBansi Member

    using System;


    namespace My_awesome_Program

    {

        class Program

        {

            static void Main(string[] args)

            { 

    //Guess I am Late

                Console.Title = "Just a simple story";

                Console.WindowHeight = 30;

                Console.WindowWidth = 120;

                

                Console.WriteLine("A programmer named...");

                Console.ReadLine();

                Console.WriteLine(".... was writing a simple C# program by... ");

                Console.ReadLine();

                Console.WriteLine("... The code was about to finsh.");

                Console.ReadKey();

                Console.WriteLine("It was flawless. You was about to hit the run key, you heard....");

                Console.ReadLine();

                Console.ForegroundColor = ConsoleColor.Green;

                Console.WriteLine("....from your cupboard.\tYou left your place and moved towards it....");

                Console.ReadLine();

                Console.WriteLine("...without wasting anytime you opened the cupboard.\nAnd there was your....");

                string thing = Console.ReadLine();

                Console.WriteLine("...you knocked out and was lying on the floor....");

                

                Console.ReadKey();

                Console.ForegroundColor = ConsoleColor.White;

                Console.WriteLine("The moment before you knocked out, you saw your...");

                Console.ReadKey();

                Console.ForegroundColor = ConsoleColor.Red;

                Console.WriteLine(thing);

                Console.ReadKey();


            }    

        }

    }

Sign In or Register to comment.