b
6
注意选项之间的差别,有空格!
package MidTerm;
public class Example1
{
public static void main(String[] args)
{
// question1
byte a = 0;
a++;
System.out.println(a);// 1
// question2
System.out.println((int) (5.7 + 1));
System.out.println();
// question3
long a1 = 1, b = 1, c;
for (int j = 1; j <= 4; j++)
{
c = a1 + b;
System.out.print("mystery(" + (j + 2) + ")=" + c + " ");
a1 = b;
b = c;
}
// question4
for (int star = 6; star < 0; star--)
{
System.out.println("**");// display nothing
}
}
}