program:
#include <stdio.h>
#include <stdlib.h>
int main()
{
int x1,x2,x3,y1,y2,y3;
float a,b;
scanf("%d%d%d%d%d%d",&x1,&y1,&x2,&y2,&x3,&y3);
a=(float) (x1+x2+x3)/3.0;
b=(float) (y1+y2+y3)/3.0;
printf("Dinesh\\'s house is located at (%0.1f,%0.1f)",a,b);
return 0;
}
No comments:
Post a Comment