Swift 4 Programming #8 - For Loops

preview_player
Показать описание
A series of Swift Tutorials that will cover all the basics of Apple's latest programming language - Swift 4! In part 8 we'll learn about the two types of for loops in Swift!

♦♦♦♦♦♦♦♦♦♦

THECODEX is a company focused on empowering and enabling anyone to learn how to code. Established in 2015 by Avinash Jain, THECODEX has taught over 150,000 students around the world how to code. With over 13 programming courses on a wide variety of topics, and more than 10,000 5-Star reviews, THECODEX is the right choice for you.

We provide engaging and comprehensive videos that break down complex information and cover everything you need to know about the subject. All students get access to our Q/A forums where you can get your doubts and problems cleared up. At the end of every course, you will receive a certificate of completion.

Jumpstart your Coding Journey with THECODEX today!
Рекомендации по теме
Комментарии
Автор

This whole series is great. keep it up bro!

mohamethseck
Автор

the explanation is really good, you have covered everything in very short time, looking forward to more tutorials like this.

nooralamshaikh
Автор

you are my go to good sir. Please keep the great post coming.

michaelszabo
Автор

Very good video. Please keep uploading material for ios it is really helpful. Great work man.

Iamshivam.
Автор

You are great! Thank you so much for the excellent work that you do.

nikolakrstevski
Автор

what kind of text editor you are using for swift? thanks

dannjohnrem
Автор

Although this video is great, you should mention ..< in addition to ...
At 2:10, you mentioned that other languages don't include the last value but swift has a way of doing this as well (..<), so I just thought you should probably state that. Otherwise, your video is great and very useful!

isaacfuenmayor
Автор

As per the video: Code below is to show multiple of 5, right? But if the range is given 1 to 20, then why the output is 1, 6, 11, 16? 😟Its giving gap of 5 numbers, not multiple of 5.


for num in stride(from: 1, to: 20, by: 5) {
print("multiple of 5: \(num)")
}


Output:
multiple of 5: 1 (why number 1?)
multiple of 5: 6
multiple of 5: 11
multiple of 5: 16

gauravpande
Автор

hi there :)
please help me i have a question

i can't use " for i in" loop inside the function
It says that i was never used before
i know that i was never used before and it didn't cause any problem when i am doing it separately ( not inside the function), but when i try to do it inside the function that error message appears

PLEASE HELP !

FanHarut
Автор

great job sir but ur speed its too fast
and zoom the code in editing.
best of luck for future project

abhishek-kapoor