Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Example program
- #include <iostream>
- #include <string>
- #include <cstdlib>
- using namespace std;
- /*
- void sort (int tab[], int n){
- for( int i = 0; i < n; i++ ){
- for( int j = 0; j < n - 1; j++ ){
- if(tab[i]>tab[i+1]){
- int bufor = tab[i];
- tab[i]=tab[i+1];
- tab[i+1]=bufor;
- }i++;
- cout << tab[i]<<endl;}
- }
- }
- */
- int main()
- {
- srand( time( NULL ) );
- int n,i;
- cout << "Podaj liczbe ciongu tablicy:";cin>>n;
- //int tab[n];
- for(i=0;i<=n;i++){
- /*tab[i] = rand()%50+1;
- cout << tab[i]<<endl;*/
- cout << i+7<<endl;
- }
- //sort(tab,n);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement