题解 | #浮点数的个位数字#
浮点数的个位数字
https://www.nowcoder.com/practice/ffa94d27c6534396aef38813535c279f
#include <stdio.h> int main() { int a; while (scanf("%d", &a) != EOF) { // 注意 while 处理多个 case // 64 位输出请用 printf("%lld") to int b; a=a/1; b=a; b/=10; a-=b*10; printf("%d\n",a); return 0; } }