{ binding.editText.setText(binding.resultTextView.text) }
}
private fun ceButton(){
binding.editText.text.clear()
binding.resultTextView.text =""
tempStringBuilder.clear()
stringBuilder.clear()
}
private fun percentButton(){
val d:Double = value1 / 100
binding.editText.setText("=${d}")
binding.resultTextView.text = "$d"
tempStringBuilder.clear()
stringBuilder.clear()
}
Yuqoridagi qolgan funksiyalar korstailgan vazifalarni bajaradi.
Natijalar
Rasm quyida yani qanday qiymat kelib turganini korsatib turibdi
Do'stlaringiz bilan baham: |