Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int a,b;
- printf("podaj liczbe calkowita a: ");
- scanf("%d", &a);
- printf("Podaj liczbe calkowita b: ");
- scanf("%d", &b);
- printf("%d/%d \n",a,b);
- while (a != b)
- {
- if ( a< b)
- b=b-a;
- else
- a=a-b;
- }
- printf("Po skroceniu liczb %d /%d",a,b);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement