java2经典问题.docVIP

  • 1
  • 0
  • 约1.44万字
  • 约 16页
  • 2018-01-05 发布于河南
  • 举报
java2经典问题

1. 百鸡问题; /** * @(#)baiji.java * * * @author * @version 1.00 2010/3/17 */ public class baiji { /** * Creates a new instance of codebaiji/code. */ public baiji() { } /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here System.out.println( 百鸡问题); int x; int y; int z; for(x=1;x=100;x++) { for(y=1;y=100;y++) { for(z=1;z=100;z++) { if((x+y+z==100)(5*x+3*y+z/3.0

文档评论(0)

1亿VIP精品文档

相关文档