Minggu, 22 Januari 2012

Bilangan Terkecil

#include
main()
{ char n(20);
cout<< "\t==========ALFIKRI==========\n"<
cout<< "\t===Media Teknologi Informasi==="<
int data[6];
cout<<"\nMasukkan bilangan : "<
for (int i=0; i<=5; i++)
{
cout<<"Angka ke "<<<" : "; cin>>data[i];}

cout<< " Angka :" <
for ( int j=0; j
cout<<<" , ";
cout<

int min=30000;

for (i=0;i<6;i++)
{
if(data[i]
{
min=data[i];
}
}
cout<<" Bilangan terkecil :"<<
cout<
cout<<" fikri-it.blogspot.com\n\n";
return 0;
}



Hasilnya:

 

0 komentar:

Posting Komentar

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More