For simple attempt number palindrome

#include<stdio.h>
main()
{
int i,j,k;
for(i=1;i<=10;i++)
	{for(j=1;j<=9;j++)
		{if(j<=5)
			printf("%3d",k=(5-j)*(5-j)+i*i-4*i);
		else printf("%3d",k=(j-5)*(j-5)+i*i-4*i);
		}
	printf("\n");
	}
	getchar();
	getchar();
}

  For try palindrome numbers, I realized the importance of the mathematical expression of the c program, he can make your program has a large degree of upgrading, is the crowning touch to the program, the program for a number of complex operations c With the completion of possibility.

Guess you like

Origin www.cnblogs.com/emmmm123/p/11242998.html