412_20 guruh talabasi Tojiqulov Temurbek
MT dan 1- labaratoriya ishi
/*
Oy nomlaridan iborat sanaladigan toifa yarating. Soralayotgan oy qaysi faslga tegishliligini aniqlang.
*/
#include
using namespace std;
void findSeason(int M)
{
switch(M)
{
case 12:
case 1:
case 2:
cout << ("\nQISH");
break;
case 3:
case 4:
case 5:
cout << ("\nBAHOR");
break;
case 6:
case 7:
case 8:
cout << ("\nYOZ");
break;
case 9:
case 10:
case 11:
cout << ("\nKUZ");
break;
default:
cout << ("\n Noto'g'ri oy raqami");
break;
}
}
int main()
{
int M;
cout << "Oy raqamini kirit: "; cin>>M;
findSeason(M);
cout<
return main();
}
Do'stlaringiz bilan baham: |