package metodosnum;
import java.util.Scanner;
public class Metodosnum {
public static void main(String[] args) {
Scanner leer= new Scanner(System.in);
float circle=720, dat=2, op;
int sum;
dat=2;
op=circle/dat;
System.out.println("el valor es: "+op);
circle=180;
int [][] s = new int[10][10];
s[0][0]=1;
s[0][1]=8;
s[0][2]=0;
sum=s[0][0]+s[0][1];
System.out.println("el valor sumado es: "+sum);
int [][] a = new int[10][10];
dat=2;
op=circle/dat;
a[0][0]=9;
a[0][1]=0;
sum=a[0][0]+a[0][1];
System.out.println("el valor es: "+op);
System.out.println("el valor sumado es: "+sum);
int [][] b = new int[10][10];
circle=90;
dat=2;
b[0][0]=4;
b[0][1]=5;
sum=b[0][0]+b[0][1];
op=circle/dat;
System.out.println("el valor es: "+op);
System.out.println("el valor sumado es: "+sum);
circle=45;
dat=2;
op=circle/dat;
System.out.println("el valor es: "+op);
int [][] c = new int[10][10];
c[0][0]=2;
c[0][1]=2;
c[0][2]=5;
sum=c[0][0]+c[0][1]+c[0][2];
System.out.println("el valor sumado es: "+sum);
circle=(float) 22.5;
dat=2;
op=circle/dat;
System.out.println("el valor es: "+op);
int [][] d = new int[10][10];
d[0][0]=1;
d[0][1]=1;
d[0][2]=2;
d[0][3]=5;
sum=d[0][0]+d[0][1]+d[0][2]+d[0][3];
System.out.println("el valor sumado es: "+sum);
dat=2;
System.out.println("el valor es: 5.625");
d[0][0]=5;
d[0][1]=6;
d[0][2]=2;
d[0][3]=5;
sum=d[0][0]+d[0][1]+d[0][2]+d[0][3];
System.out.println("el valor sumado es: "+sum);
System.out.println("="+sum/2);
}
}
No hay comentarios.:
Publicar un comentario