close
//程式設計師 : 劉冠麟(花花)(PC016)
//程式目的 : 判斷及格與否
//繳交日期 : 2007/11/07
import java.util.Scanner;
public class Grade
{
public static void main ( String args[] )
{
Scanner input = new Scanner (System.in);
int x ;
System.out.print ("請輸成績");
x = input.nextInt();
if ( x >= 60 )
if ( x
System.out.printf("及格");
if ( x >= 0 )
if ( x
System.out.printf("不及格");
if ( x > 100 )
System.out.printf("媽的! 你作弊阿");
}
}
全站熱搜