operator kondisi

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

package program;

/**
 *
 * @author Administrator
 */
public class OperatorKondisi166 {
    public static void main(String[] args) {
        System.out.println("inputkan jumlah TM(% : )");
        String st=BacaKeyboard166.bacaString();
        int tm = Integer.valueOf(st).intValue();
        int bonus = tm >= 90 ? tm/10 :0;
        System.out.println("bonus adalah "+bonus);
    }
}

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