if bersarang

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package program;
/**
 *
 * @author Administrator
 */
public class IfBersarang166 {
    public static void main(String[] args) {
        System.out.println("input nilai angka : ");
        String st=BacaKeyboard166.bacaString();
        int na=Integer.valueOf(st).intValue();
        char nh;
        if(na>=90)
            nh='a';
        else if(na>=75)
            nh='b';
        else if(na>=60)
            nh='c';
        else if(na>=45)
            nh='d';
        else nh='E';
        System.out.println("nilai huruf ="+nh);
    }
}

0 komentar:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | SharePoint Demo