public class yunsuan {

    public static void main(String[] args) {
        // 1是有,0是没有
        int i = 1, l = 0;// 有房
        int q = 1, w = 0;// 有钱
        int z = 1, c = 0;// 有能力

        if (i == l) {
            System.out.println("嫁给你");
        }

        else if (q == w) {
            System.out.println("嫁给你");
        }

        else if (z == c) {
            System.out.println("嫁给你");
        }

        else {
            System.out.println("不嫁");
        }

    }
}

 

posted on 2015-12-01 15:50  让心开始  阅读(147)  评论(0编辑  收藏  举报