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;
- //Hi Nikolay Pablov ! GET FLEXIN !!!!!!!!!!!!!!!!!!!
- namespace ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- /*here you type your username and password
- * and it will display your info */
- Console.Write("Hello user,insert your username");
- string username = Console.ReadLine();
- Console.Write("Now,type your password");
- string password = Console.ReadLine();
- Console.WriteLine("Welcome '{0}' your password is {1},is that correct?", username, password);
- /*This is a variable represented as
- * var,it can be represented as
- * int */
- var tutorial = "Hello!";
- // this is used for numbers with decimals,still a variable.
- decimal number = 1.1m;
- //numeric variable with more precision like decimal.
- float number2 = 1.4f;
- /*double is used for even mor precision
- * according to shit ass tutorials
- * wich uses decimal type base. */
- double number3 = 1.6D;
- // its a class like int.
- string tutorial2 = "This is not a decimal type object";
- // Boolean can be initiated with "true" or "false"
- bool number4 = true;
- /*Date Time,It's obviously
- * about the time.Day and hour */
- DateTime date = DateTime.MinValue;
- Console.WriteLine("{0} ", tutorial);
- //C = Currency Type
- Console.WriteLine("number equals: {0:C}", number);
- //If type F2 it will tell all the decimals,ex {0:F2},number2 = 1.4
- Console.WriteLine("number2 equals: {0:F2}", number2);
- Console.WriteLine("number3 equals: {0:F2}", number3);
- Console.WriteLine("hi " + tutorial2);
- Console.WriteLine("Number4 equals: " + number4.ToString());
- Console.WriteLine("Today is: " + date.ToShortDateString());
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement