Skip to content

Misk Al-Dukhi Done#33

Open
miskaldukhi wants to merge 12 commits intoJoinCODED:mainfrom
miskaldukhi:main
Open

Misk Al-Dukhi Done#33
miskaldukhi wants to merge 12 commits intoJoinCODED:mainfrom
miskaldukhi:main

Conversation

@miskaldukhi
Copy link

No description provided.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use more descriptive variable names

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this works, we can use else if like this:

if(score>90) {
    println("Grade: A")
}
else if(score >= 80) {
    println("Grade: B")
} else if
...etc

var b: Int= 2
var c: Int= 3
if(c>a) {
println("The largest number is $c")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if c is indeed larger than a, but b is larger than c?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants