ÔÆÌ⺣ - רҵÎÄÕ·¶ÀýÎĵµ×ÊÁÏ·ÖÏíÆ½Ì¨

µ±Ç°Î»ÖãºÊ×Ò³ > JavaÓïÑÔ³ÌÐòÉè¼Æ(»ù´¡Æª)Ô­ÊéµÚʮһ°æ ÁºÓ µÚ5¡¢6Õ ¿ÎºóÌâ´ð°¸

JavaÓïÑÔ³ÌÐòÉè¼Æ(»ù´¡Æª)Ô­ÊéµÚʮһ°æ ÁºÓ µÚ5¡¢6Õ ¿ÎºóÌâ´ð°¸

  • 62 ´ÎÔĶÁ
  • 3 ´ÎÏÂÔØ
  • 2025/12/10 22:52:49

}else if (n1==0){

if (n2==1){j++; System.out.println(\ÄãÊäÁË£¡\ } else {i++; System.out.println(\ÄãÓ®ÁË£¡\ }else if(n1==1){

if (n2==0){i++; System.out.println(\ÄãÓ®ÁË£¡\ } else {j++; System.out.println(\ÄãÊäÁË£¡\ }else {

if (n2==0){j++; System.out.println(\ÄãÊäÁË£¡\ } else {i++; System.out.println(\ÄãÓ®ÁË£¡\ } } }

5.45¼ÆËãÆ½¾ùÖµºÍ±ê×¼·½²î public class TongJi {

public static void main(String[] args) { int i=10;

double sum=0; double mean; double num=0; double standard;

double list[]=new double[i];

System.out.print(\ÇëÊäÈë10¸öÊý£º\ Scanner in=new Scanner(System.in); for (i=0;i<10;i++) {

list[i] = in.nextDouble(); sum += list[i];

num += Math.pow(list[i],2); }

mean=sum/10;

double a=num-Math.pow(sum,2)/i; standard=Math.pow(a/(i-1),0.5);

System.out.println(\ƽ¾ùÖµÊÇ£º\ System.out.print(\·½²îÊÇ£º\ } }

5.47ÉÌÒµ£º¼ì²âISBN-13

public class Text {

public static void main(String[] args) { Scanner in=new Scanner(System.in); System.out.print(\ÇëÊäÈëISBN-13£º\ String str=in.next(); int length=str.length();

if (length!=12) {System.out.println(\ÇëÊäÈëÕýÈ·µÄISBN-13Âë\ char d1=str.charAt(0);char d2=str.charAt(1);char d3=str.charAt(2); char d4=str.charAt(3);char d5=str.charAt(4);char d6=str.charAt(5); char d7=str.charAt(6);char d8=str.charAt(7);char d9=str.charAt(8);

char d10=str.charAt(9);char d11=str.charAt(10);char d12=str.charAt(11); int d=10-(d1-48+(d2-48)*3+d3+(d4-48)*3+d5+(d6-48)*3

+d7+(d8-48)*3+d9+(d10-48)*3+d11+(d12-48)*3);

if (d == 10){ int d13=0;

System.out.print

(\-13ÊÇ:\

} else {

System.out.print

(\-13ÊÇ£º\

} } }

6.7¼ÆËãδÀ´Í¶×ʻر¨Öµ public class Money {

public static void main(String[] args) { Scanner in=new Scanner(System.in); System.out.print(\ÇëÊäÈë±¾½ð£º\

double investmentAmount=in.nextDouble(); System.out.print(\ÇëÊäÈëÀûÂÊ£º\

double monthlyInterestRate=in.nextDouble(); System.out.print(\ÇëÊäÈëÄê·Ý£º\ int years=in.nextInt();

futureInvestementValue(investmentAmount,monthlyInterestRate,years); }

public static double futureInvestementValue(double investmentAmount,double monthlyInterestRate,int years){

System.out.println(\ for (int i=1;i

value=investmentAmount*Math.pow(1+monthlyInterestRate/1200,12); investmentAmount=value;

System.out.println(i+\ }

return 0; } }

  • ÊÕ²Ø
  • Î¥¹æ¾Ù±¨
  • °æÈ¨ÈÏÁì
ÏÂÔØÎĵµ10.00 Ôª ¼ÓÈëVIPÃâ·ÑÏÂÔØ
ÍÆ¼öÏÂÔØ
±¾ÎÄ×÷Õߣº...

¹²·ÖÏí92ƪÏà¹ØÎĵµ

Îĵµ¼ò½é£º

}else if (n1==0){ if (n2==1){j++; System.out.println(\ÄãÊäÁË£¡\ } else {i++; System.out.println(\ÄãÓ®ÁË£¡\ }else if(n1==1){ if (n2==0){i++; System.out.println(\ÄãÓ®ÁË£¡\ } else {j++; System.out.println(\ÄãÊäÁË£¡\ }else { if (n2==0){j++; System.out.println(\ÄãÊäÁË£¡\ } else {i++; System.out.p

¡Á ÓοͿì½ÝÏÂÔØÍ¨µÀ£¨ÏÂÔØºó¿ÉÒÔ×ÔÓɸ´ÖƺÍÅŰ棩
µ¥Æª¸¶·ÑÏÂÔØ
ÏÞÊ±ÌØ¼Û£º10 Ôª/·Ý Ô­¼Û:20Ôª
VIP°üÔÂÏÂÔØ
ÌØ¼Û£º29 Ôª/Ô ԭ¼Û:99Ôª
µÍÖÁ 0.3 Ôª/·Ý ÿÔÂÏÂÔØ150·Ý
ȫվÄÚÈÝÃâ·Ñ×ÔÓɸ´ÖÆ
VIP°üÔÂÏÂÔØ
ÌØ¼Û£º29 Ôª/Ô ԭ¼Û:99Ôª
µÍÖÁ 0.3 Ôª/·Ý ÿÔÂÏÂÔØ150·Ý
ȫվÄÚÈÝÃâ·Ñ×ÔÓɸ´ÖÆ
×¢£ºÏÂÔØÎĵµÓпÉÄÜ¡°Ö»ÓÐĿ¼»òÕßÄÚÈݲ»È«¡±µÈÇé¿ö£¬ÇëÏÂÔØÖ®Ç°×¢Òâ±æ±ð£¬Èç¹ûÄúÒѸ¶·ÑÇÒÎÞ·¨ÏÂÔØ»òÄÚÈÝÓÐÎÊÌ⣬ÇëÁªÏµÎÒÃÇЭÖúÄã´¦Àí¡£
΢ÐÅ£ºfanwen365 QQ£º370150219
Copyright © ÔÆÌ⺣ All Rights Reserved. ËÕICP±¸16052595ºÅ-3 ÍøÕ¾µØÍ¼ ¿Í·þQQ£º370150219 ÓÊÏ䣺370150219@qq.com