Thursday, September 21, 2006

Finally... i came up with the damn formula to do the Programming Lab...
Although my program works well, i think the way i do it is pretty unconventional... i wonder if it is acceptable.
im drained..
yes the weekend is coming, i can finally rest abit after the past rush week...
haix...


//I am just stoning... ignore me...
#include (stdio.h) <-- just pretend the brackets are the <> ones. coz i can put them here

int main()

{
int k;

printf("Please enter ur level of energy from 1 to 5, 1 being the lowest level and 5 the highest\n");
scanf("%i" ,&k);

switch(k)
{
case 1 :
printf("Go and sleep!!");break;
case 2 :
printf("I think u should sleep soon!!");break;
case 3 :
printf("Hang in there...");break;
case 4 :
printf("hmmmmmmm, u sure u didnt just wake up??");break;
case 5 :
printf("Hyper sia..");break;
}
printf("What ever ur case is, Kai still needs to sleep");

return 0;
}