Orden Amien To

2

Click here to load reader

description

Prog

Transcript of Orden Amien To

  • /*Fecha: Jueves 12 de marzo de 2015PROGRAMA: Este programa lo que hace es ordenar de forma ascendente y descendente un arreglo unidimensional por medio de funciones*/

    #include #includeusing namespace std;

    void OrdenamientoAscendente(int[],int); /*Prototipo*/

    void OrdenamientoDescendente(int[],int); /*Prototipo*/

    int main(){ int n; cout >n; int A[n]; for(int i=0;i

  • for(int pasada=0;pasada