#include "stdafx.h"
#include <iostream>
int subtract(int x, int y)
{
return x - y;
}
int main()
{
using namespace std;
cout << "How much money does the desired item cost?";
int x;
cin >> x;
cout << "How much money do you have currently?";
int y;
cin >> y;
cout << "You need this much more: " << subtract(x, y) << endl;
return 0;
}
cout << ((expression to be evaluated as boolean) ? "this is the true value as object" : "this is the false value as object") << endl;
cout << ((expression to be evaluated as boolean) ? "this is the true value as object" : "this is the false value as object") << endl;
Copyright © 2024, NextGenUpdate.
All Rights Reserved.