Advertisement
Josif_tepe

Untitled

Oct 8th, 2021
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int broj = 767;
  8.    
  9.     while(broj > 0) {
  10.         int posledna_cifra = broj % 10; // ja vadi poslednata cifra od brojot
  11.         broj /= 10; // ja briseme poslednata cifra od brojot
  12.     }
  13.     return 0;
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement