Advertisement
Guest User

dad

a guest
Mar 8th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 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. //Hi Nikolay Pablov ! GET FLEXIN !!!!!!!!!!!!!!!!!!!
  7. namespace ConsoleApp1
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. /*here you type your username and password
  14. * and it will display your info */
  15. Console.Write("Hello user,insert your username");
  16. string username = Console.ReadLine();
  17. Console.Write("Now,type your password");
  18. string password = Console.ReadLine();
  19.  
  20. Console.WriteLine("Welcome '{0}' your password is {1},is that correct?", username, password);
  21.  
  22. /*This is a variable represented as
  23. * var,it can be represented as
  24. * int */
  25. var tutorial = "Hello!";
  26. // this is used for numbers with decimals,still a variable.
  27. decimal number = 1.1m;
  28. //numeric variable with more precision like decimal.
  29. float number2 = 1.4f;
  30. /*double is used for even mor precision
  31. * according to shit ass tutorials
  32. * wich uses decimal type base. */
  33. double number3 = 1.6D;
  34. // its a class like int.
  35. string tutorial2 = "This is not a decimal type object";
  36. // Boolean can be initiated with "true" or "false"
  37. bool number4 = true;
  38. /*Date Time,It's obviously
  39. * about the time.Day and hour */
  40. DateTime date = DateTime.MinValue;
  41. Console.WriteLine("{0} ", tutorial);
  42. //C = Currency Type
  43. Console.WriteLine("number equals: {0:C}", number);
  44. //If type F2 it will tell all the decimals,ex {0:F2},number2 = 1.4
  45. Console.WriteLine("number2 equals: {0:F2}", number2);
  46. Console.WriteLine("number3 equals: {0:F2}", number3);
  47. Console.WriteLine("hi " + tutorial2);
  48. Console.WriteLine("Number4 equals: " + number4.ToString());
  49. Console.WriteLine("Today is: " + date.ToShortDateString());
  50. Console.ReadKey();
  51.  
  52.  
  53. }
  54. }
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement