Monday, September 29, 2008

hihi...

slacked quite alot... didnt even post last few day nor... =x

sian la... tdy at home eat, slp, play, 'study'... basically rotting lor...

program to calculate decomposed percentage...
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

#include < stdio.h >
void main() {

int a;
double before, after, difference;
double PERCENTAGE;

printf("what your weight before?\n");
scanf("%lf", &before);

printf("what your weight now?\n");
scanf("%lf", &after);

a = 1;
difference = before - after;
PERCENTAGE = (difference / before) * a;

printf("The total percentage i decomposed is : %lf%", PERCENTAGE);

}
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

waaa i like programming... when i writing program i feel veri happy... though maybe is wrong syntex or got error.... bt i love writing program! sianz... cant chk got wrong anot... my win xp crash again... ROAR!!!

chn 8 - 9pm show nai ba bai fen bai... last epi liao... sad...
he ding qin veri cute rite? hahas... nicole last scene like show a jealous face like tt... oso veri cute sia... rite rite? agree?
so did he win aihua heart? i think haf ba... but no show one... :(
den oso nvr show they tgt oso... nvr marry... >.<

anyway... new 9pm show starting...
叮当神探 i guess tis show oso veri nice.. hope i got time to catch the show.. :D

No comments: