HTML & JS
#include<iostream>
using namespace std;
int main()
 {
   int num1 = 10, num2 = 7;

   cout << "sum is: " << (num1+num2) << endl;             // answer is 17.
   cout << "minus is: " << (num1-num2) << endl;           // answer is 3 .
   cout << "product is: " << (num1*num2) << endl;         // answer is 70.
   cout << "division is: " << (num1/num2) << endl;        // answer is 1.
   cout << "modulo is: " << (num1%num2) << endl;          // answer is 3.
 }
 
 

Generated URL:

Output:

sum is: 17
minus is: 3
product is: 70
division is: 1
modulo is: 3
Report Bug