guys can you please help me to run this program?

#include <iostream>

using namespace std;

int main()
{
(int i=1;i<=20;i++)
{
if (i<=12)
}
for (int x=1;x<=10;x++)
}
cout <<"num is:" <<x<< endl;
{
break;

return 0;
}

closed account (jwkNwA7f)
Please move this to the "Beginners Programming" forum and use code tags.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <iostream>

using namespace std;

int main()
{
    for(int i=1;i<=20;i++)
    {
        if (i<=12)
        {
            for (int x=1;x<=10;x++)
            {
                cout <<"num is:" <<x<< endl;
                break;
            }
        }
    }
return 0;
}


This might be it?...What happened with your curly braces?!
Topic archived. No new replies allowed.