c++コピペ
C++は全く分からないが、コピペしてみたらこれは通った。
#include
using namespace std;int main() {
int tot;
for (tot=0; tot<=120; tot++)
{
if(tot%15==0)
cout << "fizzbuzz" << endl;else if(tot%3==0)
cout << "fizz" << endl;
else if(tot%5==0)
cout << "buzz" << endl;
else
cout << tot << endl;
} // end for
}http://ariekusumaatmaja.wordpress.com/2007/04/05/
2007 April 05 « World of Ruby Indonesia