2-labaratoriya ishi
4-variant
1-topshiriq
4
|
ARRAY berilgan ekrandan kirtilgan sondan qiymati kichik elementlarni toping.
|
#include
#include
using namespace std;
int main ()
{
arrayar={12,32,45,15,36,67,38};
int min=ar[0];
for(int i=0;i<7;i++)
{
if(ar[i] min=ar[i];
}
}
cout< return 0;
}
2-topshiriq
#include
#include
using namespace std;
int main(){
vectortu;
for(int i=0;i<10;i++)tu.push_back(i);
tu.erase(tu.begin()+8);
for(int i=0;i<10;i++)
cout<
return 0;
}
Do'stlaringiz bilan baham: |