herrDeng網內搜尋
自訂搜尋
Ads
訂閱:
張貼留言 (Atom)
熱門文章
-
11!=?
-
計算你上學期加權平均
-
計算你的BMI
-
輸出字串20次
-
int a[]={21, 23, 57, 13 ,17, 6}; float average; average=?
-
猜數字
-
1. 利用遞迴input n算2^n 2. 用C算GCD(3333,456)
-
C字串練習 字串 char word[]="You win!"; 輸出為: You win! You win You wi You w You You Yo Y 給進階使用者: gets () 是個危險的函式!
-
解釋memset, memcpy
21 則留言:
public class EX3{
public static int max(int a[]){
int M=a[0];
for(int i=1;i<a.length;i++)
if(M<a[i])
M=a[i];
return M;
}
public static void main(String [] argv){
int a[]={4,9,3,2,7};
System.out.println(max(a));
}
}
public class ex3 {
public static int max(int a[]){
int M=a[0];
for (int i=1;i<a.length;i++)
if(M<a[i])
M=a[i];
return M;
}
public static void main(String[] args)
{
int a[]={4,9,2,3,7};
System.out.println(max(a));
}
}
class Ex3{
public static int max(int a[]){
int M=a[0];
for(int i=1;i<a.length;i++)
if(M<a[i])
M=a[i];
return M;
}
public static void main(String[]args){
int a[]={4,9,2,3,7};
System.out.print(max(a));
}
}
class EX3{
public static int max(int a[]){
int M=a[0];
for(int i=1; i<a.length;i++)
if(M<a[i])
M=a[i];
return M;
}
public static void main(String [] args){
int a[]={4,9,2,3,7};
System.out.print(max(a));
}
}
class ex3
{
public static int max(int a[])
{
int M=a[0];
for(int i=1;i<=a.length;i++)
if(M<a[i])
M=a[i];
return M;
}
public static void main(String[]args)
{
int a[]={4,9,3,2,7};
System.out.print(max(a));
}
}
import java.util.*;
public class BMI{
public static double BMIcompute(double m,double w){
return w/(m*m);
}
public static void main(String[] args)
{
Scanner input=new Scanner(System.in);
System.out.print("輸入體重(公斤)");
double w=input.nextDouble();
System.out.print("輸入身高(公尺)");
double m=input.nextDouble();
double BMI=BMIcompute(m,w);
System.out.println(BMI);
}
}
class ccc
{
public static int max(int a[])
{
int M=a[0];
for (int i=0;i<=4;i++)
if(M<a[i])
M=a[i];
return M;
}
public static void main(String [] arg)
{
int[] a={4,9,8,3,7};
System.out.println(max(a));
}
}
public class EX3{
public static int max(int a[]){
int M=a[0];
for(int i=1;i<a.length;i++)
if(M<a[i])
M=a[i];
return M;
}
public static void main(String [] argv){
int a[]={4,9,3,2,7};
System.out.println(max(a));
}
}
public class EX3{
public static int max(int a[]){
int M=a[0];
for(int i=1;i<a.length;i++)
if(M<a[i])
M=a[i];
return M;
}
public static void main(String [] argv){
int a[]={4,9,3,2,7};
System.out.println(max(a));
}
}
class ex3{
public static int max(int a[])
{
int M=a[0];
for (int i=0;i<=4;i++)
if(M<a[i])
M=a[i];
return M;
}
public static void main(String [] arg)
{
int a[]={4,9,8,3,7};
System.out.println(max(a));
}
}
class ex3{
public static int max(int a[])
{
int M=a[0];
for (int i=0;i<=4;i++)
if(M<a[i])
M=a[i];
return M;
}
public static void main(String [] arg)
{
int a[]={4,9,8,3,7};
System.out.println(max(a));
}
}
class ex3{
public static int max(int a[])
{
int M=a[0];
for (int i=0;i<=4;i++)
if(M<a[i])
M=a[i];
return M;
}
public static void main(String [] arg)
{
int a[]={4,9,8,3,7};
System.out.println(max(a));
}
}
class ex3{
public static int max(int a[])
{
int M=a[0];
for (int i=0;i<=4;i++)
if(M<a[i])
M=a[i];
return M;
}
public static void main(String [] arg)
{
int a[]={4,9,8,3,7};
System.out.println(max(a));
}
}
class ex3{
public static int max(int a[])
{
int M=a[0];
for (int i=0;i<=4;i++)
if(M<a[i])
M=a[i];
return M;
}
public static void main(String [] arg)
{
int a[]={4,9,8,3,7};
System.out.println(max(a));
}
}
class ex3{
public static int max(int a[])
{
int M=a[0];
for (int i=0;i<=4;i++)
if(M<a[i])
M=a[i];
return M;
}
public static void main(String [] arg)
{
int a[]={4,9,8,3,7};
System.out.println(max(a));
}
}
class ex3{
public static int max(int a[])
{
int M=a[0];
for (int i=0;i<=4;i++)
if(M<a[i])
M=a[i];
return M;
}
public static void main(String [] arg)
{
int a[]={4,9,8,3,7};
System.out.println(max(a));
}
}
public class EX3{
public static int max(int a[]){
int M=a[0];
for(int i=1;i<a.length;i++)
if(M<a[i])
M=a[i];
return M;
}
public static void main(String [] argv){
int a[]={4,9,3,2,7};
System.out.println(max(a));
}
}
class ex3
{
public static int max(int a[])
{
int M=a[0];
for(int i=1;i<=a.length;i++)
if(M<a[i])
M=a[i];
return M;
}
public static void main(String[]args)
{
int a[]={4,9,3,2,7};
System.out.print(max(a));
}
}
class ex3
{
public static int max(int a[])
{
int M=a[0];
for(int i=1;i<=a.length;i++)
if(M<a[i])
M=a[i];
return M;
}
public static void main(String[]args)
{
int a[]={4,9,3,2,7};
System.out.print(max(a));
}
}
class ex3
{
public static int max(int a[])
{
int M=a[0];
for(int i=1;i<=a.length;i++)
if(M<a[i])
M=a[i];
return M;
}
public static void main(String[]args)
{
int a[]={4,9,3,2,7};
System.out.print(max(a));
}
}
public class ex3 {
public static int max(int a[]){
int M=a[0];
for (int i=1;i<a.length;i++)
if(M<a[i])
M=a[i];
return M;
}
public static void main(String[] args)
{
int a[]={4,9,2,3,7};
System.out.println(max(a));
}
}
張貼留言