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