Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace testing121
- {
- class MainClass
- {
- public static void Main (string[] args)
- {
- long vrt;
- bool run;
- string pass = ("AS");
- run = true;
- string vrt2;
- while (run)
- {
- if (long.TryParse (Console.ReadLine (), out vrt)) {
- vrt2 = Convert.ToString (vrt);
- if (String.Equals (pass, vrt2) ) {
- Console.WriteLine ("Hi");
- }
- }
- }}}}
- public static void Main (string[] args)
- {
- string pass = "AS";
- if (Console.ReadLine() == pass)
- Console.WriteLine("hi");
- }
- string pass = "AS";
- if (pass.Equals(Console.ReadLine()))
- {
- Console.WriteLine("hi");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement