题解 | #整数的个位#
整数的个位
https://www.nowcoder.com/practice/1c0ce3c9134f45edbcd4343f9d5e320a
using System; public class Program { public static void Main() { int num = Convert.ToInt32(Console.ReadLine()); Console.WriteLine(num % 10); } }
整数的个位
https://www.nowcoder.com/practice/1c0ce3c9134f45edbcd4343f9d5e320a
using System; public class Program { public static void Main() { int num = Convert.ToInt32(Console.ReadLine()); Console.WriteLine(num % 10); } }
相关推荐