Sunday, August 22, 2010

Program bilangan terkecil menggunakan C++

#include
02#include
03
04void main()
05{
06      int bil1, bil2, bil3, minim;
07      bil1 = 9;
08      bil2 = 2;
09      bil3 = 7;
10      minim = bil1 < bil2 ? bil1 : bil2;
11      minim = bil3 < minim ? bil3 : minim;
12      cout<<"Bilangan terkecil = "<
13      getch();
14}

0 comments:

Post a Comment

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