Advertisement
Guest User

Untitled

a guest
Jan 18th, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. void nech(){
  5. int a;
  6. cin>>a;
  7. if(a==0){
  8. return;
  9. }
  10. else{
  11. if(a%2==0){
  12. nech();
  13. }
  14. else{
  15. cout<<a;
  16. nech();
  17. }
  18. }
  19. }
  20. int main() {
  21. nech();
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement