Important Case of For loop

PHOTO EMBED

Mon Apr 18 2022 01:05:41 GMT+0000 (Coordinated Universal Time)

Saved by @Fathy #c++

// You Can Add more than condition at the same for loop
int j{};
string arr[] = { "Yes", "Yes", "Yes", "No", "Yes" };
for(j = 1; arr[j] == "Yes" && j < 5; j++);
cout << j <<endl;
content_copyCOPY