Repetir Un Numero

Ingresas Un Numero por ejemplo 4:
Reporta :
1
22
333
4444

#include<iostream>
using namespace std;


int main()
{

system("color f1");

int N;

cout<<endl<<" Ingrese Un Numero : ";

cin>>N;

for (int i = 1 ; i <= N ; i++)

{
cout<<endl<<" - ";

for (int j = 1 ; j <=i ; j++)

{

cout<<i;

}
}


cout<<endl<<endl;

system("pause");

}
Siguiente
« Post Anterior