C++ Variable Adds two variables and then prints the answer to the console.

Description

C++ Variable Adds two variables and then prints the answer to the console.

#include <iostream>

using namespace std;

int main()/*from   ww  w. jav  a  2s  .com*/
{
  int start;
  int time;
  int total;
  start = 37;
  time = 22;
  total =  start + time;
  cout << total << endl;
  return 0;
}



PreviousNext

Related