Calculate value in the output statement - C++ Language Basics

C++ examples for Language Basics:Console

Description

Calculate value in the output statement

Demo Code

#include <iostream>

using namespace std;

int main()//from w  w w  . j  a  v  a2  s . co  m
{
  int start;
  int time;
  start = 37;
  time = 22;
  cout << start + time  << endl;
  return 0;
}

Result


Related Tutorials