Thread replies: 15
Thread images: 4
Anonymous
You should be able to figure this out:
2016-05-31 00:19:50 Post No. 54826674
[Report]
Image search:
[Google]
You should be able to figure this out:
Anonymous
2016-05-31 00:19:50
Post No. 54826674
[Report]
// Written in C++
#include "stdafx.h"
#include <iostream>
int main()
{
using namespace std;
int t = 1;
while (t <= 100)
{
if (t%3==0)
{
cout << "Fizz";
}
if (t%5==0)
{
cout << "Buzz";
}
if (t%3 != 0 && t%5 != 0)
{
cout << t;
}
cout << "" << endl;
t++;
}
cout << "Press any key to continue." << endl;
t++;
system("pause>nul");
return 0;
}