Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- #include <iomanip>
- #include <math.h>
- using namespace std;
- void escribirlinea(int i){
- int j;
- for(j=1;j<=i;j++){
- cout<<j;
- if(j<1)cout<<" ";
- }
- }
- int main(){
- int i,N;
- cin>>N;
- for(i=0;i<=N;i++){
- escribirlinea(i);
- cout<<endl;
- }
- _getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement