415-20-guruh talabasi Qodirov Saidalining amaliy ishi
14. Sportchi familiyalaridan tashkil topgan ikkita halqasimon ro‘yhat berilgan. Qura tashlash amalga oshirilsin. Birinchi guruhdagi har n-inchi sportchi, ikkinchi guruhdagi har m-inchi sportchi bilan raqib bo‘lsin.
#include
using namespace std;
int main()
{
srand(time(0));
string s,d;
int a[4],b[4];
cout<<"1-jamoa ishtirokchilarini kiriting"<
for(int i=1;i<=4;i++)
{
cout<
cin>>s;
cout<
} cout<
cout<<"2-jamoa ishtirokchilarini kiriting"<
for(int i=1;i<=4;i++)
{
cout<
cin>>d;
cout<
}
for(int i=1;i<=4;i++)
{
b[i]=rand()%4+1;
cout<<"Birinchi jamoaning "<
}
}
Do'stlaringiz bilan baham: |