# include <iostream.h> |
int main () |
{ |
int X,Y,Z; |
int Max; |
cout <<" Masukkan tiga nilai intergral?"; |
cin >> X >> Y >> Z; |
Max = X; |
if ( Y > Max ) Max = Y; |
if ( Z > Max ) Max = Z; |
cout <<"Nilai maxsimalnya adalah"<< Max << endl; |
return 0; |
} |
hasil outputnya:
Tidak ada komentar:
Posting Komentar