Advertisement
NoExisteLink

tpe

May 5th, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <iostream>
  2. #include <conio.h>
  3. #include <iomanip>
  4. #include <math.h>
  5. using namespace std;
  6. void escribirlinea(int i){
  7. int j;
  8. for(j=1;j<=i;j++){
  9. cout<<j;
  10. if(j<1)cout<<" ";
  11. }
  12. }
  13. int main(){
  14. int i,N;
  15. cin>>N;
  16. for(i=0;i<=N;i++){
  17. escribirlinea(i);
  18. cout<<endl;
  19. }
  20. _getch();
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement