提交 fce747c4 编写于 作者: F firstgrass

Auto Commit

上级 00470cde
run = "javac Main.java && java Main"
language = "java"
[debugger]
program = "Main"
无法预览此类型文件
class Main {
public static void main(String[] args) {
System.out.println("Hello world!");
// 鸡兔共有35个头,94只脚,求鸡兔数量
for(int i=0;i<=35;i++)
{
if(2*i+4*(35-i)==94)
{
System.out.println("鸡的数量是:"+i);
System.out.println("兔的数量是:"+(35-i));
}
}
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册