What is the output of the program: int and arithmetic operator - C++ Operator

C++ examples for Operator:Arithmetic Operator

Description

What is the output of the program: int and arithmetic operator

Demo Code

#include <iostream>
using namespace std;
int main()//from   w  w w . j  a v a2 s  .com
{
   int num1, num2, total;
   num1 = 25;
   num2 = 30;
   total = num1 + num2;
   cout << "The total of" << num1 << " and "
   << num2 << " is " << total << endl;
   return 0;
}

Result


Related Tutorials