Numeros entre un Rango Dado

Calcula Los Numeros Comprendidos entre un Determinado Rango. ej. (2 y 5) = 3,4
# include <iostream>
using namespace std;

int main()
{

int Ni,Nf;
int i;

cout<<endl<<"\tIngrese Numero Inicial:";
cin>>Ni;

cout<<endl<<"\tIngrese Numero Final :";
cin>>Nf;

for (i=Ni+1;i<Nf;i++)
{
cout<<" \a"<<endl<<i<<endl;
}

system("pause");
}
Siguiente
« Post Anterior