import java.io.*; import java.util.*; import java.math.*; class leniar_regression { public static void main(String args[]) { Scanner sc=new Scanner(System.in); float x[]=new float [20]; float y[]=new float [20]; float yan=0; float sx=0,xans=0,yans=0,c=0,a1=0,a2=0,a3=0,a4=0,B1=0,B0=0,s1=0,s2=0; int n=0; System.out.println("enter the no of values points: \n"); n=sc.nextInt(); System.out.println("enter the value of X points: \n"); for(int i=0;i