#include int Keer3plus1(int * Getal){ int duizend = 0; for (int i = 1; i < 10; i++){ if (*Getal / (i * 10000)) { duizend = i; } else if (duizend != 0) { return(duizend); } } return 0; } int main(){ int rick = 1022; cout << Keer3plus1(&rick) << endl; rick = 11111; cout << Keer3plus1(&rick) << endl; rick = 22222; cout << Keer3plus1(&rick) << endl; rick = 33333; cout << Keer3plus1(&rick) << endl; rick = 44444; cout << Keer3plus1(&rick) << endl; }