Advertisement
ChaosTheosis

C# Tut/1

Jan 25th, 2015
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.53 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Tutorial_Project_1.Tutorial_1_Examples
  8. {
  9.     class Tutorials1
  10.     {
  11.         static void Main()
  12.         {
  13.             Console.WriteLine("Chaos Bot v1, One day ill be a fully fledged program :)");
  14.  
  15.             int Titan = 1;
  16.             int Abberant = 3;
  17.             int result = Titan + Abberant;
  18.  
  19.             Console.WriteLine("Result = " + result);
  20.  
  21.             Console.WriteLine("{0} + {1} = {2}", Titan, Abberant, (Titan + Abberant));
  22.  
  23.             Console.WriteLine("Input enter");
  24.            
  25.             Console.ReadLine();
  26.  
  27.               ////////////////////////////////////////// The Operators \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  28.                              
  29.  // + - Addition                                                                        
  30.  // - - Subtraction
  31.  // / - Division
  32.  // % - Modulus
  33.  // ++ - Increment
  34.  // -- - Decrement
  35.  // += - Addition Assignment
  36.  // -= - Subtraction Assignment
  37.  // *= - Multiplication Assignment
  38.  // /= - Division Assignment
  39.  // %= - Modulus Assignment
  40.  // != - Equal checker, if not then becomes true.
  41.  // == - Equal checker, if yes becomes true.
  42.  // > - Checks if left operand is less than right, if yes becomes true.
  43.  // < - Checks if left operand is is more than right, If yes becomes true.
  44.  // >= - Check if left operand is greater or equal or same, if yes becomes true.
  45.  // <= Checks if left operand is less or equal, if yes becomes true.
  46.  // ^ - Binary operator copies a bit to the result if it exists in both operands.
  47.  // || - Logical or operator. If any of the two operands is non zero becomes true.
  48.  // && - Logical and operator. If both operands are non zero becomes true.
  49.  
  50.             ////////////////////////////////////////// Codes And Additions \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  51.  
  52.      /*
  53.       * Void is a reference it means that it takes nothing, It has no result.
  54.       * Class is a type of reference, a file made to hold code.
  55.       * Numbers are known as int. x = 1; , y = 3.
  56.       * Semi-Colon is used when an expression statement is present.
  57.       * Namespace is the place all the classes and things go.
  58.       * Double can store decimals.
  59.       * String stores text and symbols and even numbers.
  60.       * Bool states if something is true or false, bool a = false;
  61.       * To store things in int you need to state the name with a semi-colon,
  62.       * int a; a = 4;    string b; b = "Hi";
  63.       * */
  64.  
  65.         }
  66.     }
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement