Advertisement
a53

gen_nr_patru_cifre

a53
Oct 25th, 2020
87
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. using namespace std;
  3.  
  4. int main()
  5. {
  6. int c1,c2;
  7. cin>>c1>>c2;
  8. for(int i=c1;i<=9;++i)
  9. for(int j=0;j<=8;j+=2)
  10. for(int k=0;k<=c2;++k)
  11. cout<<i<<j<<k<<j<<'\n';
  12. return 0;
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement