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 Test
- {
- class Programm
- {
- static void Main(string[] args)
- {
- string ProgName = "Test.exe";
- Console.WriteLine("I am Test.exe");
- Console.ReadLine();
- Console.Write("Enter your name: ");
- string UserName = Console.ReadLine();
- Console.WriteLine("Enter Your age: ");
- string UserAge = Console.ReadLine();
- Console.WriteLine("Hello " + UserName + " you are " + UserAge + " years old, my name is " + ProgName + " im a program telling you things!");
- // variable holding my name
- string Fname, Lname;
- Fname = "Not Jj";
- //Lname = "Not Have";
- // \/ This a String of text variable of my dads info name,age
- // \/ String is used to store text of strings/text
- // \/ Don't have to store data types in var like booleans and numbers example: (int age = "30") you can just do (Console.WriteLine(30); ) Same with true and false (Boolean)
- string FartherName = " ";
- string LastFartherName = " ";
- // A integer data type is used to work with numbers
- int FAge = 49;// initialising and int num1; is declaring and num1 = 22; is assigning
- // A double data type is used to work with decimals.
- double FarPres = 100.2;
- // Boolean is a data type that works with true and false values
- //bool IsMale = true;
- // concatenater is the "+"
- Console.ReadLine();
- Console.WriteLine("A little bit of information about me, my name is " + Fname + " " + Lname + " and my dads name is " + FartherName + " " + LastFartherName + " and hes " + FAge + " years old. Hes my dad " + FarPres + "%");
- Console.ReadLine();
- // This is a test comment, This is Test WriteLine Code
- // Console.WriteLine("-------------------");
- // Console.WriteLine("Im a programmer, Im doing awesome");
- //Console.WriteLine(" This is a test Line!\n Another line that's in one line of code but in another Line on console");
- //Console.Write("This Writes a new line\n This a Line1");
- //Console.ReadLine();
- }
- }
- }
Add Comment
Please, Sign In to add comment