Advertisement
a53

AfisareNumere2

a53
Nov 23rd, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int n;
  7. cin>>n;
  8. for(int i=1;i<=n;++i)
  9. cout<<i<<' ';
  10. cout<<'\n';
  11. for(int i=n;i>0;--i)
  12. cout<<i<<' ';
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement