正在加载图片...
举例 #include <stdio. h> #include <stdio. h> ·# include< math. h> pow(int b) void maino int a: a=b*b3 Int a, int b=5: return(a); a=pow(b, 2) void maino printf( oodn"a); int x; X=pow(5); printf("%dn, x); 北大青鸟12 举例 • #include <stdio.h> • #include <math.h> • void main() • { • int a; • int b=5; • a=pow(b,2); • printf("%d\n",a); • • } • #include <stdio.h> • pow(int b) • { • int a; • a=b*b; • return (a); • } • void main() • { • int x; • x=pow(5); • printf("%d\n",x); • }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有