Sort, Pattern, Stack
#include<iostream> //Bubble using namespace std; int main(){ int array[100],n,i,compare, step; cin>>n; for(i=0;i<n;i++) cin>>array[i]; for(step=0;step<n-1;step++) { for(compare=0;compare<n-1-step;compare++) { if(array[compare]>array[compare+1]) swap(array[compare],array[compare+1]); } } for(i=0;i<n;i++) cout<<array[i]<<" "; } #include<iostream> //Selection using namespace std; int m...