C语言怎么输出九九乘法表呢?今天一起来看一下吧 。
![C语言代码集:[1]九九乘法表,c语言代码实例](http://imgit.jingyanla.com/240307/021354D15-0.jpg)
方法
启动devC++应用程序![C语言代码集:[1]九九乘法表,c语言代码实例](http://imgit.jingyanla.com/240307/0213545519-1.jpg)
进入后点击上方文件——新建——源代码 。
![C语言代码集:[1]九九乘法表,c语言代码实例](http://imgit.jingyanla.com/240307/02135430P-2.jpg)
然后输入头文件和main函数代码:
#include<stdio.h>
main(){}
![C语言代码集:[1]九九乘法表,c语言代码实例](http://imgit.jingyanla.com/240307/0213541J1-3.jpg)
【C语言代码集:[1]九九乘法表,c语言代码实例】
然后在里面输入九九乘法表的代码:
int x,y,z;
for(360新知x=1;x<=9;x++)
{
for(y=1载父;y<=x;y++)
{
z=x*y;
printf(“%d*%d=%d“,y,x,z);
}
printf(“\n”);
}
![C语言代码集:[1]九九乘法表,c语言代码实例](http://imgit.jingyanla.com/240307/021354E41-4.jpg)
待曾治洋在当云实停调校ctrl+s进行保存 。
![C语言代码集:[1]九九乘法表,c语言代码实例](http://imgit.jingyanla.com/240307/02135412I-5.jpg)
然后按下键盘上的R选择进行编译 。
![C语言代码集:[1]九九乘法表,c语言代码实例](http://imgit.jingyanla.com/240307/02135442H-6.jpg)
效果如图所示 。
![C语言代码集:[1]九九乘法表,c语言代码实例](http://imgit.jingyanla.com/240307/02135435V-7.jpg)
