#include <iostream> using namespace std; namespace MathOps { int x = 10; int square(int n) { return n * n; } } int main() { cout <<"x=" << MathOps::x <<"\n"; cout <<"Square=" << MathOps::square(10) <<"\n"; // your code here: print MathOps::x // your code here: call MathOps::square(x) and print result return 0; }
Test Cases
Test Results
Input
Expected Output
x=10 Square=100