Prefix and postfix 2



// Prefixpostfix2.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "iostream"
using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
       int a, b, c;
       cout <<
             "Enter the inputs a and b:" << "\n";
       cin >> a >> b;
       ++a;
       ++b;
       c = a + b;
       cout << "The result c=a+b: " << c << "\n";
       system("pause");
       return 0;
}






Share on Google Plus