Java Code for Midpoint in 3d

This java programming code is used to find the midpoint in 3d. You can select the whole java code by clicking the select option and can use it. When you click text, the code will be changed to text format. This java 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 java code and use it to find the midpoint in 3d.

import java.util.*;
import java.lang.*;

class Midpoint
{  
    public static void main(String args[])
    {
     int x1,y1,z1,x2,y2,z2;
     double 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;
     System.out.println("Midpoint:"+m1+" "+m2+" "+m3);
   }
}
Other Programming Codes
Online Calculator : Midpoint in 3d
Click on the select code link to copy and paste this free java program code for midpoint in 3d.

english Calculators and Converters

Ask a Question


Sitemap