Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Java语言(一种计算机语言,尤用于创建网站)两个数相乘怎么写?
Java语言(一种计算机语言,尤用于创建网站)两个数相乘怎么写?
public class day 25b { public static void main(String[]args){

baiint[]arr 1 = new int[5],arr2=new int[5],result = new int[5];

for(int I = ;我& lt结果.长度;i++){

arr 1[I]=(int)math . round(math . random()* 4+1);

arr 2[I]=(int)math . round(math . random()* 4+1);

result[I]= arr 1[I]* arr 2[I];}

System.out.println("索引\ tar 1 \ tar 2 \ t result ");

for(int I = ;我& lt结果.长度;i++){

system . out . println(I+" \ t "+arr 1[I]+" x "+arr 2[I]+" = \ t "+result[I]);}

}

}

}

扩展资料:

javap类文件反汇编器数据类型布尔型布尔型

字节字节型

字符字符型短短整型int整形

长长整形浮动单精度浮点型

双人双精度浮点型班级类空空类型

界面接口