题解 | #整数的十位#
整数的十位
https://www.nowcoder.com/practice/031db23916904f4fad72198fe491b47b
#include <stdio.h> int main() { int a; scanf("%d",&a); int ret =a%100; if(ret>=10) { printf("%d",ret/10); } else printf("0"); return 0; }
整数的十位
https://www.nowcoder.com/practice/031db23916904f4fad72198fe491b47b
#include <stdio.h> int main() { int a; scanf("%d",&a); int ret =a%100; if(ret>=10) { printf("%d",ret/10); } else printf("0"); return 0; }
相关推荐