Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. using System;
  2.  
  3. namespace testing121
  4. {
  5. class MainClass
  6. {
  7. public static void Main (string[] args)
  8. {
  9. long vrt;
  10. bool run;
  11. string pass = ("AS");
  12. run = true;
  13. string vrt2;
  14. while (run)
  15. {
  16. if (long.TryParse (Console.ReadLine (), out vrt)) {
  17. vrt2 = Convert.ToString (vrt);
  18. if (String.Equals (pass, vrt2) ) {
  19. Console.WriteLine ("Hi");
  20. }
  21. }
  22. }}}}
  23.  
  24. public static void Main (string[] args)
  25. {
  26. string pass = "AS";
  27.  
  28. if (Console.ReadLine() == pass)
  29. Console.WriteLine("hi");
  30. }
  31.  
  32. string pass = "AS";
  33.  
  34. if (pass.Equals(Console.ReadLine()))
  35. {
  36. Console.WriteLine("hi");
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement