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.Tasks;
- namespace csharp_youtube_tutorial
- {
- class Program
- {
- static void Main(string[] args)
- {
- application_set_window();
- application_set_foreground_color();
- int x = 0;
- while (x <= 11)
- {
- Console.WriteLine("Application message!!!!");
- x++; //Increment operator. x += 1 basically.
- }
- Console.ReadKey(); //Press a key application ends. //Console[Class] ReadKey()[Function/Method]
- }
- public static void application_set_window()
- {
- Console.SetWindowSize(100, 40);
- }
- public static void application_set_foreground_color()
- {
- Console.ForegroundColor = ConsoleColor.Red;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement