├── .gitignore ├── LICENSE ├── README.md └── src ├── AssignmentIncDecOperators.kt ├── Comments.kt ├── Constant.kt ├── FirstApp.kt ├── MathOperations.kt └── Variables.kt /.gitignore: -------------------------------------------------------------------------------- 1 | # Intellij 2 | .idea/ 3 | out/ 4 | *.iml 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Houari Zegai 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Kotlin Tutorial Course 🎉 دورة تعليم البرمجة بلغة الكوتلن 2 | Step by step to build Kotlin Apps. codes & files for **youtube** :movie_camera: tutorial :green_heart:. 3 | Check the videos tutorial [**here**](https://www.youtube.com/playlist?list=PLd5-bvEurdb9f52oQL03ezcy4OV_Z_oYT) 4 | 5 |

6 | هذه الدورة مجانية وباللغة العربية، موجهة للمبتدئين والمحترفين وإلى كل من يريد تعلم لغة الكوتلن والشرح فيها بطريقة مبسطة جدا جدا، وركزنا على الأساس ثم إلى الإحتراف بإذن الله
7 | يمكنك متابعة فيديوهات الدورة من هذا الرابط 8 | إضغط هنـا 9 |

10 | 11 | ### Follow me 12 | [Linkedin](https://www.linkedin.com/in/houarizegai) | 13 | [Facebook](https://www.facebook.com/HZegai) | 14 | [Youtube](https://www.youtube.com/HouariZegai) | 15 | [Twitter](https://www.twitter.com/HouariZegai) | 16 | [Instagram](https://www.instagram.com/HouariZegai) 17 | 18 | .سبحَانَكَ اللَّهُمَّ وَبِحَمْدِكَ، أَشْهَدُ أَنْ لا إِلهَ إِلأَ انْتَ أَسْتَغْفِرُكَ وَأَتْوبُ إِلَيْكَ 19 | -------------------------------------------------------------------------------- /src/AssignmentIncDecOperators.kt: -------------------------------------------------------------------------------- 1 | fun main(args: Array) { 2 | var n : Int = 10 3 | // Assignment Operators 4 | n += 5 //n = n + 5 5 | println(n) 6 | n -= 3 // n = n - 3 7 | println(n) 8 | n *= 2 9 | println(n) 10 | n /= 2 11 | println(n) 12 | n %= 10 // n = n % 10 13 | println(n) 14 | 15 | // Increment & Decrement Operators 16 | var num = 15 17 | num++ 18 | println("Num: $num") 19 | num-- 20 | println("Num: $num") 21 | println(--num) 22 | println(num) 23 | } -------------------------------------------------------------------------------- /src/Comments.kt: -------------------------------------------------------------------------------- 1 | fun main(args: Array) { 2 | 3 | // This is test print .. 4 | println("Welcome Kotlin !") 5 | 6 | } -------------------------------------------------------------------------------- /src/Constant.kt: -------------------------------------------------------------------------------- 1 | fun main(args: Array) { 2 | val name : Char = 'A' 3 | 4 | println(name) 5 | } -------------------------------------------------------------------------------- /src/FirstApp.kt: -------------------------------------------------------------------------------- 1 | 2 | fun main(args: Array) { 3 | println("Hello World !") 4 | print("Welcome to Kotlin\n") 5 | println(125) 6 | } -------------------------------------------------------------------------------- /src/MathOperations.kt: -------------------------------------------------------------------------------- 1 | fun main(args: Array) { 2 | var num1 = 10 3 | var num2 = 20 4 | var sum = num1 + num2 - 30 5 | var sub = num1 - num2 6 | var mul = num1 * num2 7 | var div = num1 / num2.toDouble() 8 | var mod = num1 % num2 9 | println("sum: $sum") 10 | println("sub: $sub") 11 | println("mul: $mul") 12 | println("div: $div") 13 | println("mod: $mod") 14 | } -------------------------------------------------------------------------------- /src/Variables.kt: -------------------------------------------------------------------------------- 1 | fun main(args: Array) { 2 | 3 | var name : String = "Houari" 4 | 5 | var num : Int 6 | num = -20 7 | 8 | println(num) 9 | } --------------------------------------------------------------------------------