#include<iostream>
using namespace std;
int main() {
for(int i = 1; i <= 100; ++i) {
if(i%3==0 && i%5==0) cout <<"Fizzbuzz ";
else
if(i%3==0) cout <<"FIzz ";
else
if(i%5==0) cout<<"buzz ";
else cout << i << " ";
}
return 0;
}
Cool. Assuming you knocked that out as quickly as you suggest it shows that you've got good basic skills. Design and control of larger tasks/projects is untested, but it looks like you're well ahead of the basics.Now here's a question: Do you find anything "unsatisfactory" about that code?