- # include <stdio.h>
- /* 子函数声明 */
- int square(int x);
- int cube(int y);
- void main()
- {
- int m = 12;
- int n = 4;
- printf("%d %dn", square(m), m);
- printf("%d %dn", cube(n), n);
- }
- int square(int x)
- {
- x = x*x;
- return x;
- }
- int cube(int y)
- {
- y = y*y*y;
- return y;
- }