Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main() {
- int X;
- scanf("%d", &X);
- int broj;
- int deliteli = 0;
- int brojac = 0;
- while(scanf("%d", &broj)) {
- brojac++;
- if(X % broj == 0) {
- deliteli++;
- }
- if(deliteli == 2) {
- break;
- }
- }
- printf("%d \n", brojac);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement