




from __future__ import annotations

from collections.abc import Callable

def  SCREAMING_SNAKE_CASE							(       __UpperCamelCase		, __UpperCamelCase		, __UpperCamelCase		, __UpperCamelCase = 1_00		, )      ->					float:
     a     =				x_start
     a     =				fnc(__UpperCamelCase)
     a     =				0.0
     for _ in range(__UpperCamelCase):
          # Approximates small segments of curve as linear and solve
          # for trapezoidal area
          a     =				(x_end - x_start) / steps + xa
          a     =				fnc(__UpperCamelCase)
          area += abs(fxa + fxa) * (xa - xa) / 2
          # Increment step
          a     =				xa
          a     =				fxa
     return area


if __name__ == "__main__":

   def  SCREAMING_SNAKE_CASE							(       __UpperCamelCase)      ->					Optional[int]:
        return x**3 + x**2

   print("f(x) = x^3 + x^2")
   print("The area between the curve, x = -5, x = 5 and the x axis is:")
   lowercase__				:      Optional[Any]	   = 10
   while i <= 100_000:
      print(F'with {i} steps: {trapezoidal_area(f, -5, 5, i)}')
      i *= 10







def  SCREAMING_SNAKE_CASE							(       __UpperCamelCase)      ->					int:
     return 1 if digit in (0, 1) else (digit * factorial(digit - 1))

def  SCREAMING_SNAKE_CASE							(       __UpperCamelCase)      ->					bool:
     a     =				0
     a     =				number
     while duplicate > 0:
          a  ,				a     =				divmod(__UpperCamelCase		, 10)
          fact_sum += factorial(__UpperCamelCase)
     return fact_sum == number


if __name__ == "__main__":
   print("Program to check whether a number is a Krisnamurthy Number or not.")
   lowercase__				:      str	   = int(input("Enter number: ").strip())
   print(
       F'{number} is {"" if krishnamurthy(number) else "not "}a Krishnamurthy Number.'
   )

