Subtracting integer variables - C++ Operator

C++ examples for Operator:Arithmetic Operator

Description

Subtracting integer variables

Demo Code

#include <iostream>

using namespace std;

int main()//from ww  w  .  ja v a  2 s .co  m
{
  int final;
  int time;
  final = 28;
  time = 18;
  cout << final - time << endl;
  return 0;
}

Result


Related Tutorials