diff --git a/Functions: Modulo Calculator.md b/Functions: Modulo Calculator.md index d32881f06..fc50f2ca1 100644 --- a/Functions: Modulo Calculator.md +++ b/Functions: Modulo Calculator.md @@ -11,9 +11,18 @@ To write a Python program that defines a function which accepts two values and r 5. Call the `result` function with the user-provided values. ## 🧾 Program +``` +def result(a, b): + modulo_value = a % b + return modulo_value -Add code Here +a=int(input()) +b=int(input()) +print("modulo is", result(a, b)) +``` ## Output +image ## Result +Thus,the Python program that defines a function which accepts two values and returns their modulo using the % operator is created successfully.