----- Original Message ----
I AM UMAR     from islamabad
--------------------------------------------------------
#include<iostream.h>
void main()
{
    int x1,x2,x3,y1,y2,y3;
    int p1=(x1+x2+x3)/2;
int p2=(y1+y2+y3)/2;
cout<<" x component of centroid="<<p1<<endl;
cout<<" y component of centroid="<<p2<<endl;
}
-------------------------------------------------

 



      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

[Non-text portions of this message have been removed]

Reply via email to