# include <iostream.h>
void main ()
{
int usia;
cout << "berapa usia anda ? ";
cin >> usia;
if (usia < 17)
cout << "anda tidak diperkenankan menonton" << endl;
else
cout << "selamat menonton" << endl;
}
output
berapa usia anda ? 17
selamat menonton
Friday, 13 January 2012
CPP
0 Response to "contoh 21"
Post a Comment