[Plain]
/* Start the comments in the program header (to avoid any problems encountered during the submission of blog posts, the slash used to indicate that the comments have been deleted)
* Copyright and version Declaration of the program
* All rights reserved.
* File name: txt. c
* Author: liuyongshui
* Question: For any positive integer n, evaluate 1 + n * n.
* Problem source:
* Completion date: January 1, April 22, 2013
* Version No.: V1.0
*/
# Include <stdio. h>
Int main ()
{
Int num;
Int sum;
Printf ("enter an integer :");
Scanf ("% d", & num );
Sum = 1 + num * num;
Printf ("1 + % d * % d = % d \ n", num, num, sum );
Return 0;
}
/* Start the comments in the program header (to avoid any problems encountered during the submission of blog posts, the slash used to indicate that the comments have been deleted)
* Copyright and version Declaration of the program
* All rights reserved.
* File name: txt. c
* Author: liuyongshui
* Question: For any positive integer n, evaluate 1 + n * n.
* Problem source:
* Completion date: January 1, April 22, 2013
* Version No.: V1.0
*/
# Include <stdio. h>
Int main ()
{
Int num;
Int sum;
Printf ("enter an integer :");
Scanf ("% d", & num );
Sum = 1 + num * num;
Printf ("1 + % d * % d = % d \ n", num, num, sum );
Return 0;
}