Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int s (int m, int n) {
- scanf ("%d %d", &m, &n);
- for(s=1; s<=m/2 && s<=n/2; s++); {
- if ((m%s ==0) && (n%s== 0)) {
- printf ("%i %i %i", int p);}
- return s;
- }
- int main () {
- int m, n, p, a=0, b=1, c=2, d=3;
- for (p=1; p<=s/2; p++) {
- do {printf("%d", a);
- } while {(m==n||n==m);}
- do {printf("%d", b);
- } while {(m<=n||n<=m);}
- do {printf ("%d", c);}
- while {(m>=n||n>=m) ;
- }}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement