#include <cstdlib>

#include <iostream>

 

using namespace std;

 

int main(int argc, char *argv[])

{

  int a,b,c,d;

 

              cout<<"cikmak icin 0 a basiniz"<<endl;

    yeniden:

           

    cout<<"lutfen sifreyi girin"<<endl;

    cin>>a;

 

    b=7777;

    d=1111;

   //sifre bir   7777

   //sifre iki   1111

   

    if (a != b)

   

    {

    cout<<"sifreyi gir"<<endl;     

    cout<<"kullanici sifreyi girinceye kadar dongu devam edecektir"<<endl;

    goto yeniden;

   

    if (a=b)

   

    {

         cout<<"lutfen ikinci sifreyi girin"<<endl;

         cin>>c;

        

         if ( c = d )

    {

            cout<<"tebrikler sisteme devam edebilirsiniz"<<endl;

           

         }

        

         else if ( c !=d )

         {

              cout<<"Tebrikler sistemdesiniz"<<endl;

              cout<<"lutfen enter a basiniz"<<endl;

             

              system("PAUSE");

              return EXIT_SUCCESS;

             

         }

        

    }  

    }   

   

    else if (a = b)

   

    {

    cout<<"sisteme devam edebilirsiniz"<<endl;

   

    yeniden2:

        

    cout<<"ikinci sifrenizi de girin: ";

    cin>>c

   

    d=1111;

               if( c=d )

                   {

                   cout<<"ikinci sifrenizde dogru sisteme devam edebilirsiniz " <<endl;     

                          system("PAUSE");                     

                   }

                  

                  

                   else if (c != d)

                   {

                   cout<<"ikinci sifreniz yanlis lutfen tekrar girin"<<endl; 

                   goto yeniden2;  

                       

                   }

   

    }

       

       

   

 

   

   

   

    system("PAUSE");

    return EXIT_SUCCESS;

 

}