CJCoding With Joseph
← Back to Question List
C++ Code Walkthrough #21

Integer Division and Modulo

easyOperators

📄 Code

Read carefully — what does this print?
1#include <iostream>
2using namespace std;
3int main() {
4 int a = 17, b = 5;
5 cout << a / b << " " << a % b << endl;
6 return 0;
7}

🎯 Your Answer