In C Programming Language Modulus means the remainder value of a division operation.
To get this value in C programming we use the % (percentile) symbol.
Let's do coding to get the modulus of two numbers.
Run the above code on Code Editor and Try.#include<stdio.h>int main(){int num1,num2;printf("Enter 1st Number : ");scanf("%d",&num1);printf("Enter 2nd Number : ");scanf("%d",&num2);printf("Modulus of %d and %d is : %d",num1,num2,num1%num2);return 0;}
Other Links: