Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int rekurzija(int x) {
- int broj_na_deliteli = 0;
- for(int i = 1; i <= x; i++) {
- if(x % i == 0) {
- broj_na_deliteli++;
- }
- }
- if(broj_na_deliteli >= 5) {
- return x;
- }
- return rekurzija(x + 1);
- }
- int main() {
- int n;
- scanf("%d", &n);
- printf("%d\n", rekurzija(n + 1));
- return 0;
- }
- /*
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement