Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main
- {
- new age;
- printf ("Masukkan umur anda :");
- scanf ("%d",age);
- switch(age)
- {
- case ..10: printf("Anda tergolong Anak-anak");
- case 11..17: printf("Anda tergolong ABG");
- case 18..20: printf("Anda tergolong Remaja");
- case 21..30: printf("Anda tergolong Dewasa");
- case 31..39: printf("Anda tergolong Matang");
- case 40..: printf("Anda tergolong Tua");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement