Комментарии:
It reduces line of codes.
Ответитьmantab jiwa
ОтветитьHow come the stopping condition has to be less than and equal? I used just equal and it infinitely looped it. Why is this?
Ответитьint main(){
for(int i = 3; i > 0; i--){
std::cout << i << '\n';
}
std::cout << "BOOM";
Happy new year
ОтветитьThank you bro.
Ответитьthank you
ОтветитьQuite don't understand the initialization statement can you help me whats the counter means
ОтветитьThanks.
Ответитьint main(){
std::string weekDays[7] = {"Monday\n", "Tuesday\n", "Wednesday\n", "Thursday\n", "Friday\n", "Saturday\n", "Sunday\n"};
int input;
for (int i = 0; i < 7; i++){
std::cout << weekDays[i];
}
return 0;
}