#include <cstdlib>

#include <iostream>

 

using namespace std;

 

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

{

   

    cout<<"********************************************"<<endl;

    cout<<"**      Periyod bulma progragrami         **"<<endl;

    cout<<"**                                        **"<<endl;

    cout<<"**                                        **"<<endl;

    cout<<"**     Ahmet BALABAN Eylul-2007           **"<<endl;

    cout<<"**                                        **"<<endl;

    cout<<"**             V (1.0)                    **"<<endl;

    cout<<"********************************************"<<endl;

   

    int a;

   

   

    cout<<"sayiniz trigonometrik cemberde derece - aci olarak kabul edilecektir"<<endl;

    restart:

    restart2:

    restart3:

    restart4:

    restart5: 

 

    cout<<"bir sayi giriniz: ";

   cin>>a;

  

   

   

         

         

          cout<<"0 ile +360 arasinda bir sayi giriniz: ";

          goto restart;

         

 

         

    if ((a<360) || (a>270))

    {

    cout<<"sayiniz 4.bolgede"<<endl;

    cout<<"lutfen bir sayi daha giriniz: "<<endl;

    goto restart2;

    } 

    if ((a<270) ||(a>180))

    {

    cout<<"sayiniz 3.bolgede"<<endl;    

    cout<<"lutfen tekrar bir sayi daha giriniz: "<<endl;

    goto restart3;

         

    }

   

    if ((a<180)||(a>90))

    {

    cout<<"sayiniz 2.bolgede"<<endl;

    cout<<"lutfen bir sayi daha giriniz: "<<endl;

    goto restart4;    

          

    }

   

    if ((a<90)||(a>0))

    {

    cout<<"sayiniz 1.bolgede"<<endl;

    cout<<"lutfen bir sayi daha giriniz: "<<endl;

    goto restart5;

         

    }

 

   

    system("PAUSE");

    return EXIT_SUCCESS;

}