fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int x,y;
  6. for (x=1;x<=30;x=x+1){
  7. for (y=1;y<=30;y=y+1){if (x+y==30 && x*y==221)
  8. {printf ("%d %d\n",x,y);}
  9. }}
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 4372KB
stdin
Standard input is empty
stdout
13 17
17 13