Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suzanne Saleem assignment #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SuzanneSaleem1
Copy link

my homework, I didn't know how to pull it

}
Output: 22

### Answer 1
Copy link
Contributor

Choose a reason for hiding this comment

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

goog job for creating the first function, but if you remove the return data type will be worked 👍

Output: "Ahmed Abdullah Al Waleed"
```

### Answer 2
Copy link
Contributor

Choose a reason for hiding this comment

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

You don't need to create three variables, just used the function parameters and the println() that you did.


Output: "The largest number is 14"
```
### Answer 3
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice try, but the when expression is used for only one condition, and this challenge has more than one condition.

you can find more information about when in this link: https://kotlinlang.org/docs/control-flow.html#when-expression

Multiply: 6
Divide: 0
```
### Challenge 1 answer
Copy link
Contributor

Choose a reason for hiding this comment

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

When you create a function and then we want to call this function to execute it, we will call it in the main function.
Also, Be careful when used println() in your code, you need to put all things inside parentheses in a double quote ("").

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.

None yet

2 participants