#include
using std::cin;
using std::cout;
using std::endl;
int main()
{
double firstNumber(0);
cout << endl << "Enter first number: ";
cin >> firstNumber;
double secondNumber(0);
cout << endl << "Enter second number: ";
cin >> secondNumber;
cout << endl << firstNumber << " - " << secondNumber
<< " = " << (firstNumber - secondNumber) << endl;
system("PAUSE");
return 0;
}
Chat with our AI personalities
You can have a function with no parameters.
This smells like homework, so I'll only give you pseudo-code: decimal returnLargest(decimal a, decimal b) is a > b ? then, return a, else, return b;
the basic parameters of transmission lines are R,L,C and G...........
a. Functions can have only one parameter. b. The order in which the parameters are defined matters. c. Parameters can be passed to a function in any order. d. Parameters have no order.
There is no builtin function 'counta' in C.