题解 | #浮点数的个位数字#
浮点数的个位数字
https://www.nowcoder.com/practice/ffa94d27c6534396aef38813535c279f
#include <stdio.h> int main() { float f = 0.0f; scanf("%f", &f); printf("%d\n", (int)f % 10); return 0; }
浮点数的个位数字
https://www.nowcoder.com/practice/ffa94d27c6534396aef38813535c279f
#include <stdio.h> int main() { float f = 0.0f; scanf("%f", &f); printf("%d\n", (int)f % 10); return 0; }
相关推荐