Alpro - Pertemuan 4 (Mencetak bilangan ganjil dari 0-10)
flowchart! ^_^
it's the program!^_^
#include <iostream>
#include <string>
using namespace std;
int main()
{
int i;
i =1;
while (!(i>10))
{
if (i % 2==0)
{
}
else
{
cout << i << endl; }
i =i+1;
}
system("pause");
return 0;
}
Tidak ada komentar:
Posting Komentar