O‘zbekiston respublikasi axborot texnologiyalari va kommunikatsiyalarini rivojlantirish vazirligi muhammad al-xorazmiy nomidagi toshkent axborot texnologiyalari universiteti fan: Web dasturlash Amaliy ish 1 Bajardi
#include using namespace std; int main() { int x[] = {2, 4, 6, 8, 15, 1}; //butun son listi int len = sizeof(x) / sizeof(x[0]); // Array ichidan eng kichik elementini topib ber if ( len > 0 ) { int smallest = x[0]; for ( int i = 1; i < len; i++ ) { if ( smallest > x[i] ) { smallest = x[i]; //eng kichigini o'zlashtirish } } cout << "Eng kichigi : " << smallest << endl; } else { cout << "Element mavjud emas" << endl; } }