Advertisement
Josif_tepe

Untitled

Mar 5th, 2025
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct stek {
  5.    
  6. };
  7.  
  8. void func(stek &m)
  9. {
  10.    
  11. }
  12. int main()
  13. {
  14.     stek s;
  15.     int no, element, c;
  16.     s.init();
  17.     cout << "Vnesete koj broj da se proveri:";
  18.     cin >> no;
  19.     while(no != 0){
  20.         element = no % 10;
  21.         no /= 10;
  22.         s.push(element);
  23.     }
  24.     func(s);
  25.    
  26. }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement