Ergashov Abduqodir 914-21
7- LABORATORIYA ISHI.
Sonli sinflar bilan ishlash. Ifodani sintaksis tahlil qilish. 1.Complex sinfidan foydalanib, kompleks sonlar inkrementini (prefiks (++i) va postfiks (i++) lar uchun) amalga oshiring. #include using namespace std; main() { int a = 21; int c ; c = a++; cout << "Line 1 - Value of a++ is :" << c << endl ; cout << "Line 2 - Value of a is :" << a << endl ; c = ++a; cout << "Line 3 - Value of ++a is :" << c << endl ; return 0; }
2.Valarray sinfidan foydalanib minimal va maximalni toping #include using namespace std;
int main(){
valarrayvarr={10,30,12,13,7,28,26};
cout<<"max elementi:";
cout<cout<<"min elementi:";
cout< return 0;S
}