CCCPaste

Untitled

#include 

using namespace std;

int main()
{
    int broj = 767;
    
    while(broj > 0) {
        int posledna_cifra = broj % 10; // ja vadi poslednata cifra od brojot
        broj /= 10; // ja briseme poslednata cifra od brojot
    }
    return 0;
}