Hi guys, I'm having trouble with this program.
Question is write a c++ program to draw and fill a triangle given three sides.
For some values, it works fine but for some, it doesn't. For example, if I enter 5, 6 & 9 it works fine but when I enter 6, 8 & 9 it doesn't work.
#include<iostream>
using namespace std;
int main()
{
int rows, columns;
double l,m,n, largest_side;
@Muhammad Kashif
he's referring to those formats on the right (when you post something here)
and that you should use [ code ] (without spaces between the word and brackets), and then end the code with [ /code ] (also without the spaces), so that it can be more readable.
something like this:
[ code ]
code
more code
[ /code ]
you could press one of the buttons, and see what option it is (<> is the one for source code)
and so the result should look like this: (also indent the text if needed)
Edit: also there's a "h++" around line 50, and it hasn't previously been declared. If you meant to type another letter there, it's for the best if you change it in the post then