From 323e3be54a34ece4c8373f47339f356fc57e1bac Mon Sep 17 00:00:00 2001 From: karuniyasubbulakshmi-ctrl Date: Tue, 2 Jun 2026 15:46:10 +0530 Subject: [PATCH] Update Functions: Modulo Calculator.md --- Functions: Modulo Calculator.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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.