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