fork download
  1. // #include <stdio.h>
  2. // int main()
  3. // {
  4. // printf("%f\n",1.237);
  5. // printf("%.3f\n",1.237);
  6. // printf("%.2f\n",1.237);
  7. // return 0;
  8. // }
  9. // #include <stdio.h>
  10. // int main()
  11. // {
  12. // printf("%10.3f\n",12.34);
  13. // return 0;
  14. // }
  15.  
  16. // #include <stdio.h>
  17. // int main()
  18. // {
  19. // printf("%d\n",12);
  20. // printf("%+d\n",12);
  21. // printf("%-d\n",-12);
  22. // printf("%-d\n",12);
  23. // printf("%d\n",-12);
  24. // return 0;
  25. // }
  26.  
  27. // #include <stdio.h>
  28. // int main()
  29. // {
  30. // char abcdef[] = "abcdef";
  31. // printf("%s\n",abcdef);
  32. // printf("%.3s\n",abcdef);
  33. // return 0;
  34. // }
  35. #include <stdio.h>
  36. int main()
  37. {
  38. int i = 0;
  39. int j = 0;
  40. int x = 0;
  41. int y = 0;
  42. scanf("%d %d %d %d", &i, &j, &x, &y);
  43. printf("i = %d\n",i);
  44. printf("%d\n",i);
  45. printf("j = %d\n",j);
  46. printf("%d\n",j);
  47. printf("x = %d\n",x);
  48. printf("%d\n",x);
  49. printf("y = %d\n",y);
  50. printf("%d\n",y);
  51. return 0;
  52. }
Success #stdin #stdout 0s 5316KB
stdin
1
2
3
4
stdout
i = 1
1
j = 2
2
x = 3
3
y = 4
4