C++ for loops explained 🔂

  Рет қаралды 17,820

Bro Code

Bro Code

Күн бұрын

Пікірлер: 27
@BroCodez
@BroCodez 2 жыл бұрын
#include int main() { for(int i = 10; i > 0; i--){ //count down to 10 std::cout
@crooda3681
@crooda3681 6 ай бұрын
Happy new year
@criminalx7099
@criminalx7099 2 жыл бұрын
It reduces line of codes.
@rivazmardani
@rivazmardani 2 жыл бұрын
mantab jiwa
@ins4nutty341
@ins4nutty341 Ай бұрын
Quite don't understand the initialization statement can you help me whats the counter means
@yashraj52_
@yashraj52_ Ай бұрын
can you describe more clearly what you didn't understood. I can help you.
@c0ola1d
@c0ola1d 2 жыл бұрын
#include int main(){ int count = 0; char yorn; std::string name[50]; do{ std::cout > name[count]; std::cout
@lastwaveundergroundsaviour7037
@lastwaveundergroundsaviour7037 2 жыл бұрын
How come the stopping condition has to be less than and equal? I used just equal and it infinitely looped it. Why is this?
@oximas-oe9vf
@oximas-oe9vf 2 жыл бұрын
i don'tget why it infenetly looped for you but the reason why you set it to less than or equal is because the for loop keeps going as long as the condition (i
@znedj
@znedj Ай бұрын
Thanks.
@yellowhellow-wi9gi
@yellowhellow-wi9gi 2 ай бұрын
thank you
@sohungry9000
@sohungry9000 20 күн бұрын
int main(){ std::string weekDays[7] = {"Monday ", "Tuesday ", "Wednesday ", "Thursday ", "Friday ", "Saturday ", "Sunday "}; int input; for (int i = 0; i < 7; i++){ std::cout
@Gavin_NA
@Gavin_NA 3 ай бұрын
#include #include int main() { for (int i = 1; i
@Nati-uu4ph
@Nati-uu4ph 3 ай бұрын
#include int main(){ for(int i=10; i >= 1; i--){ std::cout
@Yousif_Maksabo
@Yousif_Maksabo 3 ай бұрын
#include int main () { for (int i=10; i>=1; i-- ) { std::cout
@parpaperchimp
@parpaperchimp 8 ай бұрын
#include int main(){ For(int i =0;i>= 0;i-=2) std::cout>>”this doesn’t even display something”\’n’; //this literally doesn’t do anything I wrote this as an assignment return 0;}
@krustykunal402
@krustykunal402 7 ай бұрын
you forgot curly bracket For(int i =0;i>= 0;i-=2){ std::cout>>”this doesn’t even display something”\’n’; }
@parpaperchimp
@parpaperchimp 7 ай бұрын
@@krustykunal402 thanks man
@JayChit
@JayChit 6 ай бұрын
int main(){ for(int i = 3; i > 0; i--){ std::cout
@Lokvie
@Lokvie 2 ай бұрын
You're such a huge help my try: #include #include int main() { for (int i = 1; i
C++ break & continue explained 💔
1:42
Bro Code
Рет қаралды 10 М.
C++ Tutorial -   Loops In C++ [For Loop, While Loop, Do While Loop]
16:20
Mom had to stand up for the whole family!❤️😍😁
00:39
She's very CREATIVE💡💦 #camping #survival #bushcraft #outdoors #lifehack
00:26
s. USE API TO READ DATA FROM POSTGRES
2:17
educr Updates
Рет қаралды 6
C++ nested loops explained ➿
4:17
Bro Code
Рет қаралды 12 М.
Loops in C++ (for loops, while loops)
12:20
The Cherno
Рет қаралды 409 М.
What is INHERITANCE in C++? 👨‍👧‍👧
11:05
Bro Code
Рет қаралды 13 М.
The Absolute Best Intro to Monads For Software Engineers
15:12
Studying With Alex
Рет қаралды 654 М.
COMPUTER SCIENCE explained in 17 Minutes
16:49
Wacky Science
Рет қаралды 1,2 МЛН
C++ Banking program for beginners 💰
13:53
Bro Code
Рет қаралды 12 М.
Mom had to stand up for the whole family!❤️😍😁
00:39