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\");
}
