Answer to Question #175759 in C for Call

Question #175759

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


1
Expert's answer
2021-03-26T16:31:04-0400
#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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS