Professional Documents
Culture Documents
#include<iostream>
using namespace std;
int main ()
{
int arr[10] = {2, 3, 4, 9, 7, 1, 6, 5, 0, 8};
int temp;
for (int j = 0; j<10; j++)
{
for(int i = 0; i<10; i++)
{
if (arr[i] > arr[i+1])
{
temp = arr[i];
arr[i]=arr[i+1];
arr[i+1] = temp;
}
}
}
cout << "{";
for(int i = 0; i<10; i++)
{
cout << arr[i] <<", ";
}
cout << "}";
return 0;
}
// DELETE ARRAY
#include<iostream>
using namespace std;
int main()
{
int size;
cout <<"enter the size of the array : ";
cin >> size;
#include <iostream>
using namespace std;
int main()
{
int num[100];
int value;
int position;
return 0;