Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int s (int m, int n) {
  4. scanf ("%d %d", &m, &n);
  5. for(s=1; s<=m/2 && s<=n/2; s++); {
  6. if ((m%s ==0) && (n%s== 0)) {
  7. printf ("%i %i %i", int p);}
  8. return s;
  9. }
  10.  
  11. int main () {
  12.  
  13. int m, n, p, a=0, b=1, c=2, d=3;
  14.  
  15. for (p=1; p<=s/2; p++) {
  16. do {printf("%d", a);
  17. } while {(m==n||n==m);}
  18. do {printf("%d", b);
  19. } while {(m<=n||n<=m);}
  20. do {printf ("%d", c);}
  21. while {(m>=n||n>=m) ;
  22. }}
  23.  
  24.  
  25. return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement