#include<stdio.h>
#include<conio.h>
#include<iostream.h>
void main()
{
int bil=0;
int a;
clrscr();
cout<<" \n\nMENAMPILKAN BILANGAN GANJIL \n";
cout<<"========================================"<<endl<<endl;
cout<<"Masukkan Batas = ";cin>>a;
while (bil<=a)
{
if (bil % 2!=0)
cout<<" ("<<bil<<") ";
bil++;
}
getch();
}
No comments:
Post a Comment