//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;
}
#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;
}
No comments:
Post a Comment