-->
Showing posts with label WAP to understand arithmetic remainder operator.. Show all posts
Showing posts with label WAP to understand arithmetic remainder operator.. Show all posts

WAP to understand arithmetic remainder operator.

//program to understand remainder operator(modulus operator)

#include <iostream>//header file

using namespace std;//to handle all standard characters/functions,reserved words  used in program. we do not use in turboc++ compiler.

int main()          //main function
{
    cout << "remainder, when divided 5 by 7, is " <<5%7<<endl;
    return 0;
}