<<":";="" find the midpoint
ni times an opportunity try to find the midpoint denag c + +
1.mengetahui value of x1, x2, y1, y2
2.into in formula
X = (x1 + x2) / 2;
Y = (y1 + y2) / 2;
3. displays the results of execution
# include
# include
main () {
int x1, x2, y1, y2, X, Y, M;
court <<"masukakn X1:";
cin>> x1;
court <<"masukakn X2:";
cin>> x2;
court <<"masukakn Y1:";
cin>> y1;
court <<"masukakn Y2:";
cin>> y2;
{
X = (x1 + x2) / 2;
Y = (y1 + y2) / 2;
}
court <<"X" << court <<"Y" << return 0;
}
0 comments:
Posting Komentar