These are the values when i is 0: c=0 i=0 j=0 k=0 c=1 k=1 c=2 j=1 k=0 c=3 k=1 c=4 k=2 c=5 i=1 now i is 1 and the same it's repeated again, but c is increamented up to 10
By the way, Arun try this method in exam: draw a table of variables(for example: variables are columns) and debug code step by step in paper. This method helped me very much in exam. Regards, Jamal Hasanov www.j-think.com