《C语言程序设计》教程习题和源代码.rar

2009年11月12日 10:10    发布者:诸葛孔明
1.1】打印“九江职业大学”的汉语拼音。
程序源码如下:
main()
{
printf(“jiu jiang zhi ye da xue!”);
}


1.2】求任意两个整数的积。
程序源码如下:
#include
int mul(int a,int b);

main()

{
int x,y,z;

printf("input two numbers:\n");
scanf("%d%d",&x,&y);

z=mul(x,y);

printf("mul=%d",z);


}

int mul(int a,int b)

{
int c;
c=a*b;
return c;

}
该文章有附件资料,如需下载请访问 电脑版

网友评论

长话短说 2010年07月16日
谢谢了!
YT19999 2010年12月07日
好资料
shalione 2011年08月03日
学习了
zsc196688 2011年10月16日
谢谢了。