Program.cs 159 B

12345678
  1. int a, b, c;
  2. a = Convert.ToInt32(Console.ReadLine());
  3. b = Convert.ToInt32(Math.Pow(a, 2));
  4. c = b % 10;
  5. if (c == 5)
  6. {
  7. Console.WriteLine(Math.Pow(a,2));
  8. }