is useless information. can you bit more desriptive?
2. p is zero, you don't set this to anything other than zero, and when you multiply something by zero, you get zero. I'm talking about line number 24.
3. line 24: why are you dividing your perimeter by 2?
I thought it would change automatically after I made p= (a+b+c)/2
No. When you assign a value to a variable, it assigns the value as it's computed at that point in the code. It does not assign the formula that you give it.
A couple of other things:
Line 15 could be simplified as cin >> a >> b >> c; Pretty cool, huh!
It seems to me that it would be more useful to put lines 17-22 before line 14. That way the user would know what the values mean.