Please give me a codin for this ouput? 12 11 1 10 2 9 3 8 4 7 5 6
Originally Posted by arun12it Please give me a codin for this ouput? 12 11 1 10 2 9 3 8 4 7 5 6 Try this only if u are not able to solve the puzzle, int num1=12,num2,i; clrscr(); num2=num1/2 - 1; for(i=0;i<7;i++){ printf("\n"); printf("%d",num1); if((i<(num2+1))&&(i)){ printf("\t%d",i); } num1--; } More you can try.
Forum Rules