Guest User

Untitled

a guest
Jul 11th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.64 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace CockNibbler
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             // We are defining a integer value and setting it to 10.
  13.             int myCustomInteger = 10;
  14.  
  15.             // We are writing a line of text to the screen, then adding the value of our
  16.             // previously defined integer to it.
  17.             Console.WriteLine("russ3gamer is a cool cat " + myCustomInteger);
  18.  
  19.             // We are initializing a "for loop", which repeats the same code over and over
  20.             // until a certain criteria is met. In this case we are telling the program:
  21.             // For (it's the same as saying each time) the integer "i" is LESS THAN or EQUAL TO
  22.             // myCustomInteger (which we set to 10), then run through the code - writing a line
  23.             // to the screen.
  24.             for (int i = 0; i <= myCustomInteger; i++)
  25.             {
  26.                 // As you can see, this is almost the same as the first line we wrote to the screen,
  27.                 // except that we are adding the integer "i" to it. That means that every time
  28.                 // the code is run, we get a unique identifier added to it. Like "Code has been run
  29.                 // X amount of times.
  30.                 Console.WriteLine("russ3gamer wrote some shit to the screen " + i + " times.");
  31.             }
  32.  
  33.             // We are waiting for user input, thus allowing us to see what the program did before.
  34.             // This also prevents the program from shutting down.
  35.             Console.ReadLine();
  36.         }
  37.     }
  38. }
Add Comment
Please, Sign In to add comment