Please give me a codin for this ouput?
12
11 1
10 2
9 3
8 4
7 5
6
Printable View
Please give me a codin for this ouput?
12
11 1
10 2
9 3
8 4
7 5
6
[QUOTE=arun12it;24494]Please give me a codin for this ouput?
12
11 1
10 2
9 3
8 4
7 5
6[/QUOTE]
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.