#include<conio.H>
#include<iostream.h>
void main()
{
int a,i;
i=1;
char pilih;
clrscr();
cout<<"\n\n PROGRAM MENAMPILKAN BILANGAN 1-100"<<endl;
cout<<" YANG HABIS DIBAGI SESUAI DENGAN BILANGAN YANG DIINPUTKAN"<<endl;
cout<<" *===========================================================*"<<endl;
atas:
cout<<"\n\n Dari angka 1-100."<<endl;
cout<<" Tampilkan bilangan yang habis dibagi = ";
cin>>a;
cout<<" ==========================================================================="<<endl<<endl;
while(i<100)
{
if(i%a==0)
cout<<" ["<<i<<"] ";
i++;
}
cout<<" \n ==========================================================================="<<endl;
cout<<"\n\n Bilangan di atas adalah bilangan yang habis dibagi "<<a<<endl;
cout<<"\n\n\n\n\n\n\n\n\n\n\n ++++++++++++++++++++++++++++++++++++++++++"<<endl;
cout<<" TERIMA KASIH TELAH MENGGUNAKAN PROGRAM SAYA"<<endl;
cout<<" ++++++++++++++++++++++++++++++++++++++++++++++"<<endl;
cout<<"\n CREATED BY : JAYARI / 10540040"<<endl;
cout<<"\n\n Press anykey to Exit...!!!!";
getch();
}
No comments:
Post a Comment