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.Code:#include <iostream> using namespace std; int main() { float number1, number2, a; cout<<"Please enter a number: "; cin>> number1; cin.ignore(); cout<<"What number would you like to multiply " << number1 << " by: "; cin>>number2; cin.ignore(); cout<< "" <<number1<< " multiplied by " << number2 << "equals" (number1 * number2); cin.get(); return 1; }
What is it I'm doing wrong?

