Contoh program mengurutkan angka


#include
#include
#include
void main ()
{
int nilai1,nilai2,nilai3,nilai4,nilai5;
nilai1 = 3 > 2;
nilai2 = 16 == 16;
nilai3 = 17 !=17;
nilai4 = 14 >=17;
nilai5 = 15 <=11;
cout << "Nilai1 = "<< nilai1 << "\n";
cout << "Nilai2 = "<< nilai2 << "\n";
cout << "Nilai3 = "<< nilai3 << "\n";
cout << "Nilai4 = "<< nilai4 << "\n";
cout << "Nilai5 = "<< nilai5 << "\n";
getch();
}
>

0 comments:

Post a Comment