using System;
        //csc string_empty.cs
        namespace ex_empty
        {
        public class MyClass
        {
        public string process(string s1, string s2)
        {
        string error="";
        
        if((s1 !="")&(s2 != ""))
        {
        Console.WriteLine("--Compare frist with second---");
        int n = s1.CompareTo(s2);
        if (n==0){ Console.WriteLine("Matched "); error = "Logged In " ;}
        else if(n>0){Console.WriteLine("Did not Match: Value is more"); error = 
        " Sorry ";}
        else if(n<0){Console.WriteLine("Did not Match: Value is less"); error = 
        " Sorry ";}
        Console.WriteLine("--Compare second with first---");
        int n2 = s2.CompareTo(s1);
        if (n2==0){ Console.WriteLine("Matched ");}
        else if(n2>0){Console.WriteLine("Did not Match: Value is more ");error = 
        " Sorry ";}
        else if(n2<0){Console.WriteLine("Did not Match: Value is less ");error = 
        " Sorry ";}
        
        }//end of if Block
        else
        {
        Console.WriteLine("There is an error in your login : {0},{1},{2}" , s1 , 
        ":" , s2 );
        if (s1== String.Empty){ Console.WriteLine(" 1st string empty");}
        if (s2== String.Empty){ Console.WriteLine(" 2nd string empty");}
        //error = "reenter your data :" ;
        error = String.Empty;
        }
        return error;
        }
        
        }
        public class test
        {
        public static void Main()
        {
        Console.Write("Enter a your password : ");
        string str1 = Console.ReadLine();
        Console.Write("Repeat your password : ");
        string str2 = Console.ReadLine();
        MyClass my = new MyClass();
        Console.Write("Back to Main : " + my.process(str1, str2));
        Console.ReadLine();
        }
        }
        }