fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. double x, y, x1, y1;
  5. int ix, iy = 0, ster;
  6. scanf("%lf", &x);
  7. y = x;
  8. x1 = x;
  9. ix = (int)x1;
  10. x = (double)ix;
  11. y -= x;
  12.  
  13. y *= 10;
  14. y1 = y;
  15. y1 += 0.1;
  16. ster = (int)y1;
  17. if (ster != 0)
  18. {
  19. iy += ster;
  20. y1 = (double)ster;
  21. y -= y1;
  22. }
  23.  
  24. y *= 10;
  25. y1 = y;
  26. y1 += 0.1;
  27. ster = (int)y1;
  28. if (ster != 0)
  29. {
  30. iy *= 10;
  31. iy += ster;
  32. y1 = (double)ster;
  33. y -= y1;
  34. }
  35.  
  36. y *= 10;
  37. y1 = y;
  38. y1 += 0.1;
  39. ster = (int)y1;
  40. if (ster != 0)
  41. {
  42. iy *= 10;
  43. iy += ster;
  44. y1 = (double)ster;
  45. y -= y1;
  46. }
  47.  
  48. y *= 10;
  49. y1 = y;
  50. y1 += 0.1;
  51. ster = (int)y1;
  52. if (ster != 0)
  53. {
  54. iy *= 10;
  55. iy += ster;
  56. y1 = (double)ster;
  57. y -= y1;
  58. }
  59.  
  60. y *= 10;
  61. y1 = y;
  62. y1 += 0.1;
  63. ster = (int)y1;
  64. if (ster != 0)
  65. {
  66. iy *= 10;
  67. iy += ster;
  68. y1 = (double)ster;
  69. y -= y1;
  70. }
  71.  
  72. if (ix < iy) printf("%i < %i", ix, iy);
  73. if (ix > iy) printf("%i > %i", ix, iy);
  74. }
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
Standard output is empty