题解 | #整数的个位#
整数的个位
https://www.nowcoder.com/practice/1c0ce3c9134f45edbcd4343f9d5e320a
#include<stdio.h> int main() { int n = 0; int c = 0; scanf("%d", &n); c = n % 10; printf("%d", c); return 0; }
整数的个位
https://www.nowcoder.com/practice/1c0ce3c9134f45edbcd4343f9d5e320a
#include<stdio.h> int main() { int n = 0; int c = 0; scanf("%d", &n); c = n % 10; printf("%d", c); return 0; }
相关推荐