题解 | #浮点数的个位数字#
浮点数的个位数字
https://www.nowcoder.com/practice/ffa94d27c6534396aef38813535c279f
using System; public class Program{ public static void Main() { string[] dou = Console.ReadLine().Split("."); int num = int.Parse(dou[0]); Console.WriteLine(num%10); } }