Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void){
- int szam;
- int oszto;
- int db=0;
- printf("\nKerek egy szamot: ");
- scanf("%d", &szam);
- for (oszto=1; oszto<=szam; oszto++) {
- if(szam%oszto==0)
- db++;
- }
- Printf"\nOsztok szama: %d\n", db);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment