Ok here is the brief decription:
if
input : 1 2-7 8-12
then the output should be
output: 1 2 3 4 5 6 7 8 9 10 11 12
now the input doesn;t have to be in a sequence,
for example
input : 1 5-7 8-11
then the output should be
output : 1 5 6 7 8 9 10 11
basically it expands the integers represented by '-',but prints out the other integers just as it is.
Can anybody give me a hint or a sample prog. how to implement this ?
Thank you.
2007-03-16
08:11:56
·
3 answers
·
asked by
vishal1987
1
in
Computers & Internet
➔ Programming & Design