berikut ini saya buatkan source codenya:
#include<conio.h>
#include<iostream.h>
void main()
{
int bil,hitung;
cout<<"PROGRAM VIEWER BILANGAN GANJIL ALA WIDI"<<endl;
for (hitung=1; hitung<=40; hitung++)
{
if(hitung%2!=0)
cout<<hitung<<endl;
}
getch();
}
kemudian kompile program ini dengan Ctrl+F9
berikut preview program viewer bilangan ganjil:

Semoga bermanfaat bagi yang berkepentingan...
No comments:
Post a Comment