Skip to content

Instantly share code, notes, and snippets.

View 726f737479's full-sized avatar
πŸ‘‹

Rosty 726f737479

πŸ‘‹
View GitHub Profile
fun drawRating(vote: Int): String {
if (vote >= 0 && vote <= 20) {
return "β˜…β˜†β˜†β˜†β˜†"
}
else if (vote > 20 && vote <= 40) {
return "β˜…β˜…β˜†β˜†β˜†"
}
else if (vote > 40 && vote <= 60) {
return "β˜…β˜…β˜…β˜†β˜†"
}