Hey guys , first of all I wanted to ask is it ok , if sometimes when you don't know how to solve a problem " you tried but you couldn't solve it "
, you look in google and get hints or something and then try to solve it after that ? Because I sometime do this but I really feel upset after that , it's like lying to myself :(
anyways When I was reviewing the book I saw a problem that says : put a number and then separate it , for example : 4197 it should print 4 1 9 7
I used an old program that I had which reverse the digits and then modified it to print it to solve this problem , yeah I solved it , but the thing is the chapter was before arrays , so I think they wanted me to do it without using arrays, is there a better solution ?
its perfectly fine to google it. the point of programming is to challenge your self, but it is perfectly fine to google something to learn a new skill. for example, i could spend a couple of hours pouring over winapi pages to find the functions i can use to make my program a background progress or i can google it real quick, which saves me time and allows me to focus on skills i want to work on. as to your solution, i could show you a way with out arrays, but how advanced am i allowed to get?