#include<iostream.h>
#include<conio.h>
main()
{
int u;
cout<<"Masukan umur anda : ";
cin>>u;
cout<<endl;
cout<<"Anda termasuk kategori : ";
if (u>=51)
cout<<"Manula";
else
if (u>=18)
cout<<"Dewasa";
else
if (u>=13)
cout<<"Remaja";
else
if (u>=6)
cout<<"Anak-Anak";
else
if (u>=1)
cout<<"Balita";
getch();
}
COMMENTS :
0 komentar to “Program If Else”
Post a Comment