#include
using namespace std;
int main()
{
int i=1, m;
m = 0;
for ( i; i < 1000; i++)
{
if
(i % 9 == 0 && i % 11 == 0)
break;
m = m + 1;
if (m % 5 == 0)
cout << m << endl;
}
return 0;
}
#include<iostream>
using namespace std;
int main()
{
int i=1, m;
m = 0;
for ( i; i <= 1000; i++)
{
if(i % 10 == 0 && i % 9 == 0){
m = m + 1;
if (m % 5 == 0)
cout << i << endl;
else
cout << i << " ";
}
}
return 0;
}
int main()
{
int i, m = 0;
for (i = 10; i < 1000; i+=10)
{
if (i % 90 == 0)
{
m = m + 1;
cout << i << ' ';
if (m % 5 == 0)
cout << endl;
}
}
return 0;
}
不知道你这个问题是否已经解决, 如果还没有解决的话: