fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. int n;
  7. if(scanf("%d", &n) != 1) return 0;
  8.  
  9. while(1)
  10. {
  11. printf("%d\n%d", n*2, n/2);
  12.  
  13.  
  14. if(scanf("%d", &n) != 1)
  15. break;
  16.  
  17.  
  18. printf("\n\n");
  19. }
  20.  
  21. return 0;
  22. }
Success #stdin #stdout 0.01s 5288KB
stdin
191 18
stdout
382
95

36
9