Question #175759

How to calculate the value of 6%4 .with explanation


Expert's answer

#include <bits/stdc++.h>
using namespace std;


int main()
{
    int a,b;
    
    cin>>a>>b;
    // % modulo operator gives remainder as result.
    cout<<"a % b: "<<a%b;
    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS