What is wrong with my code I want to make multiples of 11 fr

What is wrong with my code? I want to make multiples of 11 from 1 to 1000 in c++

#include <iostream>

using namespace std;

int main ()

for

( j = 1; j <= 1000; j++) { if ( j%11 == 0)

cout << j << \" \" << endl;

  

}

Solution

The below two you have to doing wrong.

Program:-

#include <iostream>
using namespace std;
int main ()
{
   for(int j = 1; j <= 1000; j++)
   {
       if ( j%11 == 0)
       cout << j << \" \" << endl;
   }
   system(\"pause\");
}

What is wrong with my code? I want to make multiples of 11 from 1 to 1000 in c++ #include <iostream> using namespace std; int main () for ( j = 1; j <=

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site