-
Notifications
You must be signed in to change notification settings - Fork 27
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
base: main
Are you sure you want to change the base?
Conversation
} | ||
Output: 22 | ||
|
||
### Answer 1 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 ("").
my homework, I didn't know how to pull it