Message composable

Report a typo

Create a composable function with the name ReceivedMessages. This function should contain a parameter count of Int type and display a text with a count of received messages on the screen: "You have 3 messages.". If you have received 0 messages, you should display the following text: "You have no messages.".

Example:

Condition: count is 1:
Text to show: You have 1 message.

Condition: count is 2:
Text to show: You have 2 messages.

Condition: count is 0:
Text to show: You have no messages.

Write a program in Kotlin
// put your code here
___

Create a free account to access the full topic