run problem

i try to run a program but it won't work out and there are error. may i know what the problem i have done? this is my program.
#include <iostream.h>
main ()
 float price,commission;
 cout <<"Enter sale price"<<'\n';
 cin >>price;
 commission=0.075 * price
 cout <<"\n Your commission is"<<commission;
FYI, this is my program question:-
A salesperson selling a piece of real estate, receives 7.5% commission. Enter the sales price and respond by displaying the commission and have a blank line between the input and output value.
Please correct me if i have done mistake.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You forgot a ; behind the line that calculates the commission and the newline should probably be written after the price has been read and before the commission is written.
yvonnesooAuthor Commented:
what do you mean? i don't understand.
"10234084.cpp", line 7: error(3158): expected a ";"
   commission=0.075 * price  cout <<"\n Your commission is"<<commission;
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

You have to add the semicolon at the end of the statement. change
  commission=0.075 * price
  commission=0.075 * price;
This is the correct code:

#include <iostream>
main ()
  float price,commission;
  cout << "Enter sale price: " << endl;
  cin >> price;
  commission = 0.075*price;
  cout << endl << "Your commission is " << commission << endl;

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
They are right, you need the ";" after "commission=0.075 * price".  

You will want to put an endl in apropriate places. This puts a CR/LF in and flushes the IO stream, otherwise your text might not appear on the monitor until the buffer fills up. It might not be a problem on this simple program, or with your current compiler and operating system, but you might get confused on bigger programs or if things change.  

Use "cout <<"\n Your commission is"<<commission << endl;"

cout <<"Enter sale price"<< endl;


ALSO, you COULD HAVE put the '\n' as part of the string instead of separately

 cout <<"Enter sale price\n";

Niemeyer, you're taking other peoples comments as answer.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.