#include<iostream>
#include<iomanip>
#include<conio.h>
using namespace System;
using namespace std;
void main()
{
float NOTAS[20];
int NP;
cout<<"\n Antes de comenzar, digite el numero de posiciones del arreglo\t\a ";
cin>>NP;
cout<<"\n\n\n";
cout<<"\t\t Ahora, introdusca las "<<NP<<" notas\n\n ";
for(int IND=0; IND<=NP-1; IND++)
{
cout<<"\n NOTA["<<IND+1<<"]\a= ";
cin>>NOTAS[IND];
}
cout<<"n\n\n";
for(int X=NP-1; X>=0; X--)
{
cout<<"\n NOTAS["<<X+1<<"] =\t"<<NOTAS[X];
}
getch();
}

No hay comentarios:
Publicar un comentario