#include #include using namespace std; const int year = 10; int main(){ srand(time(NULL)); int income[30][2]; int tempVar; int startYear = 1990; for(int i = 0; i<30; i++){ income[i][0] = (rand() % 4900) + 100; income[i][1] = (rand() % 31) + 1990; } for(int i = 0; i<30; i++){ for(int j = 0; j<30; j++){ if(income[i][0] > income[j][0]){ tempVar = income[i][0]; income[i][0] = income[j][0]; income[j][0] = tempVar; } } } for(int i= 0; i<30; i++){ cout << "Yıl: " << income[i][1] << " Ciro: " << income[i][0] << "TL " << endl; } }