Cpp Code for Midpoint in 3d

This cpp programming code is used to find the midpoint in 3d. You can select the whole cpp code by clicking the select option and can use it. When you click text, the code will be changed to text format. This cpp program code will be opened in a new pop up window once you click pop-up from the right corner. You can just copy, paste this cpp code and use it to find the midpoint in 3d.

#include<iostream>
using namespace std;
int main()
{
  int x1,y1,z1,x2,y2,z2;
  float m1,m2,m3;
  x1=5;y1=3;z1=6; x2=4;y2=5;z2=6;
  m1=(x1+x2)/2.0;
  m2=(y1+y2)/2.0;
  m3=(z1+z2)/2.0;
  cout<<"Midpoint:"<<m1<<" "<<m2<<" "<<m3;
}
Other Programming Codes
Online Calculator : Midpoint in 3d
Click on the select code link to copy and paste this free cpp program code for midpoint in 3d.

english Calculators and Converters


Sitemap