HellOo

I've started to write a simple code to seprates the input integer , for example , if tried to enter 4444 , then it will sperate them by a space to be 4 4 4 4 , so any idea?

Thanks

Let's see what you have so far...

Question - Are you separating an integer into its separate digits or are you just putting spaces between something that's read from stdin?

thx for the reply , In fact yes , the idea is putting spaces between the integers that read from stdin

:)

Well to start with try to convert an integer to string . While there are inbuilt functions you can use for this I would encourage you write your own. It will be a good experience if you are new to programming
Post your doubts/ questions here

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.