Wednesday, September 22, 2010

Contoh Program nilai terbesar dan terkecil c++

#include

int kecil(int a,int b)
{
int terkecil;
if (a
terkecil=a;
else
terkecil=b;
return terkecil;
}
int main ()
{
int a,b;
cout<<"masukan bilangan 1...";
cin>>a;
cout<<"masukan bilangan 2..";
cin>>b;
cout<
}

0 comments:

Post a Comment

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Laundry Detergent Coupons