THX!!!! I WIll use it when I find a triangle with 4 corners
This is my Tutorial for Beginners - Area of Triangle.
Download Sample if you cant make it urself.Code:#include <iostream> using namespace std; int main() { //declare variables double lenght = 0.0; double width = 0.0; double area = 0.0; //inpute items cout << "Enter lenght: "; cin >> lenght; cout << "Enter width: "; cin >> width; //Calculate Area area = width * lenght //Calculate cout << "Your area is: " << area << endl; return 0; // end of main function
Last edited by Lakshay; 06-07-2010 at 02:38 AM.
THX!!!! I WIll use it when I find a triangle with 4 corners
Last edited by lalakijilp; 06-07-2010 at 03:34 AM.
wait wait wait...
triangle area is: x * y? LOL!
what about (x*y)/2 ?
and thats not a tutorial.. thats a piece of code that explains almost nothing..
Last edited by 'Bruno; 06-07-2010 at 02:47 AM.
Light travels faster than sound. That's why most people seem bright until you hear them speak.
Triangle area is not l * w. This is the area of a square. Other than that it is a good work, and you should make some more advanced tutorials. Try doing a tutorial that finds real roots of a quadratic equation... Good luck!