Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion Functions: Modulo Calculator.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<img width="567" height="317" alt="image" src="https://github.com/user-attachments/assets/2fdbcfe1-07ff-48ac-abd0-f84a698f971b" />

## Result
Thus,the Python program that defines a function which accepts two values and returns their modulo using the % operator is created successfully.