Modulus of 2 numbers

Description:

Find the modulus of given two numbers Test Case 1 Input (stdin) 8 3 Expected Output 2 Test Case 2 Input (stdin) 5 6 Expected Output 5

Program :

#include <iostream>

using namespace std;

int main()

{

    int a,b;

   cin >> a;

     cin >> b;

   cout<< a % b;

return 0;

}