fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int x,y,z;
  5. scanf("%d",&x);
  6. y=x%100;
  7. z=y/10;
  8. printf("入力された整数の10の位の数は%dである",z);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0.01s 5328KB
stdin
539
stdout
入力された整数の10の位の数は3である