/*
menampilkan deret bilangan positif kelipatan 3
contoh input=10
3 6 9
*/
#include
#include
using namespace std;
int main(int argc, char*argv[])
{
int a;
cout<<"a = ";
cin>>a;
for(int i=3;i<=a;i++)
{
if (i%3==0)
{
cout< }
}
cout<
system ("PAUSE");
return EXIT_SUCCESS;
}
0 komentar:
Posting Komentar