What is important in programming, the logic used or just the execution? Because sometimes it happens that we get different logic given in books or on websites but our logic is different and still the program is executing.
hi,
the logic and execution both is important, its true that there is different logic available to make a program, you may have seen that some one write a program in 10 lines and the same program run by other is 5 lines, you need to check in both of the cases you are getting same result or not, if the result is same and executed successfully then your logic is perfect.
hope you may understand.