Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void main (void)
- {
- int broj, broj1, faktor=2;
- printf("\n Upisite jedan prirodni broj: ");
- scanf("%d",&broj);
- broj1=broj;
- printf("%d=1",broj);
- while (faktor<=broj)
- {
- if (broj1%faktor==0)
- {
- printf("*%d",faktor);
- broj1/=faktor;
- }
- else faktor+=1;
- }
- }
- return 0; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement