Wednesday, April 4, 2012

Java dərs 5

2 comments:

  1. package Sahe;

    public class Cavadov {

    public static void main(String[] args) {


    int yas = 19; /*ozumden yas verirem*/

    if (yas > 1 && yas<=5) {
    System.out.println("korpe");
    } else if (yas >5&&yas<=10) {
    System.out.println("usaq");

    } else if (yas > 10&&yas<=18 ) {

    System.out.println("genc");

    } else if(yas>18) {
    System.out.println("yetkin");
    }

    }
    }

    ReplyDelete
  2. package javaders;
    public class DersBewTapwiriq {
    public static void main(String[] args) {
    int yas = 1;
    if(yas >=1 && yas<=5 ){
    System.out.println("korpe");
    } else if (yas > 5 && yas <= 10) {
    System.out.println("uwaq");
    } else if (yas<10 && yas<=18 ){
    System.out.println("genc");
    } else if (yas>18){
    System.out.println("yetiwkin");
    }

    }

    ReplyDelete