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.
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile