Hey everyone, this is my first time learning a language (apart from HTML and CSS) and I am having a few problems. I have read the first few parts of the tutorial on this site, and I decided to create a basic program that multiplies two numbers that the user types in.
I am having a problem with outputting text. Here's the code
According to my compiler, Dev-C++, I cannot use "equals" as a function, although I just want this text to be displayed on the screen.
using namespace std;
float number1, number2, a;
cout<<"Please enter a number: ";
cout<<"What number would you like to multiply " << number1 << " by: ";
cout<< "" <<number1<< " multiplied by " << number2 << "equals" (number1 * number2);
What is it I'm doing wrong?