import java.util.*;
/*Please dont change class name, Dcoder
and class must not be public*/
//Compiler version JDK 1.8
class Dcoder
{
int a[]=new int[5];
int b[]=new int[5];
int c[]=new int[10];
int i,j;
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
for(i=0;i<5;i++)
{
System.out.println("enter numbers");
int a[i]=sc.nextInt();
System.out.println("enter numbers");
int b[i]=sc.nextInt();
}
for( i=0,j=0;i<5;i++,j=j+2)
{
c[j]=a[i];
}
for(i=0,j=1;i<5;i++,j+=2)
{
c[j]=b[i];
}
for(i=0;i<10;i++)
{
System.out.print(c[i]);
}
}
}
Answers
}
public void F1() {
double x=14.26, y=-1.22, z=0.035;
double s=(1+Math.pow(z, 2)/(3-Math.pow(z, 2)/5))*(2*Math.cos(x-2/3))/(1/2+Math.pow(Math.sin(y), 2));
System.out.println("1. s = "+s);
}
public void F2() {
double x=-4.5;
double y=0.75*Math.pow(10, -4);
double z=-0.845*Math.pow(10, 2);
double s;
s=((Math.sqrt((9+Math.pow((x-y), 2))+3))/(Math.pow(x,2)+Math.pow(y, 2)+2))-Math.pow(Math.E,Math.abs(x-y))*Math.pow(Math.tan(z),3);
System.out.println("2. s = "+s);
}
public void F3() {
double x=3.74*Math.pow(10, -2);
double y=-0.825;
double z=0.16*Math.pow(10, 2);
double s;
s=1+Math.pow(Math.sin(x+y),2)/Math.abs(x-2*y/1+Math.pow(x,2)*Math.pow(y,2))*(Math.pow(x,Math.abs(y)))+(Math.pow(Math.cos(Math.atan(-z),2)));
System.out.println("3. s = "+s);
}
public void F4() {
double x=0.4*Math.pow(10,-2);
double y=-0.875;
double z=-0.475*Math.pow(10,-3);
double s;
s=Math.abs(Math.pow(Math.cos(x)-Math.cos(y),1+2*Math.pow(Math.sin(y),2)))*(1+z+Math.pow(z,2)/2+Math.pow(z,3)/3+Math.pow(z, 4)/4);
System.out.println("4. s = "+s);