Jjgames

program.cs

Jul 25th, 2021 (edited)
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.43 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 Test
  8. {
  9.     class Programm
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             string ProgName = "Test.exe";
  14.  
  15.             Console.WriteLine("I am Test.exe");
  16.             Console.ReadLine();
  17.             Console.Write("Enter your name: ");
  18.             string UserName = Console.ReadLine();
  19.  
  20.             Console.WriteLine("Enter Your age: ");
  21.             string UserAge = Console.ReadLine();
  22.             Console.WriteLine("Hello " + UserName + " you are " + UserAge + " years old, my name is " + ProgName + " im a program telling you things!");
  23.  
  24.  
  25.  
  26.             //     variable holding my name
  27.             string Fname, Lname;
  28.             Fname = "Not Jj";
  29.             //Lname = "Not Have";
  30.  
  31.             //     \/ This a String of text variable of my dads info name,age
  32.             //     \/ String is used to store text of strings/text
  33.             //     \/ 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)
  34.             string FartherName = " ";
  35.             string LastFartherName = " ";
  36.             //     A integer data type is used to work with numbers
  37.             int FAge = 49;// initialising and int num1; is declaring and num1 = 22; is assigning
  38.             //     A double data type is used to work with decimals.
  39.             double FarPres = 100.2;
  40.             //     Boolean is a data type that works with true and false values
  41.             //bool IsMale = true;
  42.  
  43.             //     concatenater is the "+"
  44.             Console.ReadLine();
  45.             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 + "%");
  46.  
  47.             Console.ReadLine();
  48.             //     This is a test comment, This is Test WriteLine Code
  49.             //     Console.WriteLine("-------------------");
  50.             //     Console.WriteLine("Im a programmer, Im doing awesome");
  51.  
  52.  
  53.             //Console.WriteLine(" This is a test Line!\n Another line that's in one line of code but in another Line on console");
  54.             //Console.Write("This Writes a new line\n This a Line1");
  55.             //Console.ReadLine();
  56.  
  57.         }
  58.     }
  59. }
  60.  
Add Comment
Please, Sign In to add comment