Code:#include <cstdlib> #include <iostream> #include <string> using namespace std; int main(int argc, char *argv[]) { string x = "How are you?"; for (int x=0;x<10;x++); { cout<<x<< endl; } cin.get(); return EXIT_SUCCESS; }
it doesnt work, it prints only once. what i need is 10