im new here and i have an exam tomorrow so i need to learn how to do this!!!
the question is to write a program that prompts the user to enter a value, with a message then being displayed that is dependent on teh value entered....
the message should be 1 = happy first birthday
17 = you can learn how to drive
30 = still young
40 = getting older
so far i got:
what am i doing wrong?
printf("Enter value: \n");
case 1: printf("hello you");
case 17: printf("you can learn to drive");
case 30: printf("still young");
case 40: printf("getting older");