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 Tutorial_Project_1.Tutorial_1_Examples
- {
- class Tutorials1
- {
- static void Main()
- {
- Console.WriteLine("Chaos Bot v1, One day ill be a fully fledged program :)");
- int Titan = 1;
- int Abberant = 3;
- int result = Titan + Abberant;
- Console.WriteLine("Result = " + result);
- Console.WriteLine("{0} + {1} = {2}", Titan, Abberant, (Titan + Abberant));
- Console.WriteLine("Input enter");
- Console.ReadLine();
- ////////////////////////////////////////// The Operators \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- // + - Addition
- // - - Subtraction
- // / - Division
- // % - Modulus
- // ++ - Increment
- // -- - Decrement
- // += - Addition Assignment
- // -= - Subtraction Assignment
- // *= - Multiplication Assignment
- // /= - Division Assignment
- // %= - Modulus Assignment
- // != - Equal checker, if not then becomes true.
- // == - Equal checker, if yes becomes true.
- // > - Checks if left operand is less than right, if yes becomes true.
- // < - Checks if left operand is is more than right, If yes becomes true.
- // >= - Check if left operand is greater or equal or same, if yes becomes true.
- // <= Checks if left operand is less or equal, if yes becomes true.
- // ^ - Binary operator copies a bit to the result if it exists in both operands.
- // || - Logical or operator. If any of the two operands is non zero becomes true.
- // && - Logical and operator. If both operands are non zero becomes true.
- ////////////////////////////////////////// Codes And Additions \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- /*
- * Void is a reference it means that it takes nothing, It has no result.
- * Class is a type of reference, a file made to hold code.
- * Numbers are known as int. x = 1; , y = 3.
- * Semi-Colon is used when an expression statement is present.
- * Namespace is the place all the classes and things go.
- * Double can store decimals.
- * String stores text and symbols and even numbers.
- * Bool states if something is true or false, bool a = false;
- * To store things in int you need to state the name with a semi-colon,
- * int a; a = 4; string b; b = "Hi";
- * */
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement