Hello,

I have one little problem. How connect integer together?

example:

int n = 1

int m = 1

int k = 1

result = n + m + k //but result should be 111 not 3(also keep it like integer)

little trick but not working for me... thanks for help:)))

Printable View

- 06-24-2011kaspari22Connecting intervals together
Hello,

I have one little problem. How connect integer together?

example:

int n = 1

int m = 1

int k = 1

result = n + m + k //but result should be 111 not 3(also keep it like integer)

little trick but not working for me... thanks for help:))) - 06-24-2011tabstop
I don't know what you mean by "keep it like interval" (EDIT: unless you mean

*integer*instead). As to how to build 111, ask yourself: what does the first 1 mean, what does the second 1 mean, and what does the third 1 mean? - 06-24-2011kaspari22
Sorry my mistake all of them should be Integer...

- 06-24-2011m37h0d
are all these numbers <10?

if not, what is the desired output then? - 06-24-2011kaspari22
Yes it should be only one type 0-9 so <10

- 06-24-2011m37h0d
here's a hint:

100 +

010 +

001