saving . . . saved Modulus Operator has been deleted. Modulus Operator has been hidden .
Modulus Operator
Title
Question
How to use Modulus Operator?

C-and-Cpp Arithmetic-Operators 05-06 min 20-30 sec 17-12-16, 12:59 p.m. ronakkumar1414@gmail.com

Answers:

If we want to calculate remainder then we should use modulus operator.It is denoted as %.For example if we want to find the number is even or odd the we find that by using %.
number%2==0
18-07-17, 2:25 p.m. AISH98


a
06-05-18, 4:35 p.m. kumarank


#include<stdio.h>
void main()
{
int i;
if(n%2==0)
{
prinntf("yes");
}
else{
printf("no");
}
}
23-05-18, 12:53 a.m. gsaisrinagalakshmi02@gmail.com


number%2==0
22-04-19, 10:55 a.m. SKS110684


Log-in to answer to this question.