public void test(View view){ int q = Integer.parseInt(x.getText().toString()); int rta = q*3; int tt ; if (q == 1 ){ tt=q*6; Toast.makeText(this, "sonuç: "+tt, Toast.LENGTH_SHORT).show(); } if (q>=2&&q<=6){ Toast.makeText(this, "5 tl", Toast.LENGTH_SHORT).show(); } if (q>6&&q<=10){ Toast.makeText(this, "4 tl", Toast.LENGTH_SHORT).show(); } if (q>10){ Toast.makeText(this, ""+rta, Toast.LENGTH_SHORT).show(); } }