have command to force finish or quit program in C?
Type: Posts; User: PUI
have command to force finish or quit program in C?
i want to write if scanf input !=123ABC
will do next step
what is the write format?
if i go from T to F , then 18-5 = 13. how come give different?
how can i present in C?
i dont understand go right or left
question:
A to Z is a circle, if i start from T ,then want go to F, i want to choose a shorest part. how can i do it .
T>U>V>W>X>W>Z>A>B>C>D>E>F = 12
T>S>R>Q>P>O>N>M>L>K>J>I>H>G>F =14
-_-"
when i type DA it output -3 , how can i change all output to positive number?
thx for help
that means
printf("%c - %c = %d" , first , second , different);
?
seems cant work
that mean i need 'D' - 'A' = 3 change to ASCII code in my program ?
sorry for first post
i want to count the number of alphabet between my input
exmaple : I input AD , i want it show me the answer is 3,since
(A>B>C>D)
i am newbie for C program , pls help