From 6a4eb751e4d75382fef3cf558539bccd8b7d6ebe Mon Sep 17 00:00:00 2001 From: manal mohammed alghamdi <92260712+manalmohammed3@users.noreply.github.com> Date: Tue, 8 Mar 2022 14:46:23 +0300 Subject: [PATCH] Update README.md --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index debb56b..90bde4e 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,10 @@ Create a function that receives an integers array and returns the number that ap | (1,1,2) | 2 | | (2,2,1) | 1 | +fun manal{ + var salem: Array =arrayOf((2,4,6,4,9,6,2) + +} ## 2nd Challenge Create a function that receives a string then it converts uppercase letters into lowercase and vice versa. The function then should print the converted value. @@ -21,6 +25,11 @@ Create a function that receives a string then it converts uppercase letters into | My name is Ali | mY NAME IS aLI | | sHroog | ShROOG | + fun manal{ + var salem: Array =arrayOf() + if (salem) + +} ## 3rd Challenge Create a function that receives an array of items & arrays and returns one flattened array with all items exluding null values. @@ -50,4 +59,10 @@ Create a function that receives a string that contains combination of parenthese | {[}]) | false | - +fun manal{ + var salem= readLine()!!.toString() + if (salem==) + println(true) +else + println(false) +}