Advertisement
Guest User

Untitled

a guest
Apr 18th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int n, i;
  8. cin>>n;
  9. cout<<endl;
  10. for (i=0; i<=n; i++)
  11. {
  12. for (int x=0; x<=i; x++)
  13. cout<<i;
  14. cout<<endl;
  15. }
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement