So I just started to use Visual Code for Mac and started to play around with it. I got the c/cpp and code run extensions and also downloaded HomeBrew. When I created a "for loop" there was no output in the terminal.
#include <iostream>
int main()
{
std::cout << "Hey" << std::endl;
/*for(int i = 0; i > 30; i++)
{
std::cout << i << " - " << std::endl;
}*/
for (int i = 1; i <= 5; ++i) {
std::cout << i << " ";
}
return 0;
}
-------------------------------------------------
TERMINAL:
Hey
Im just confused on why the "for loop" isn't outputting. Is there another extension or setting that I have to download/enable?