#include stdio.h(3)
#include <stdio.h>
int main()
{
/* *
**
***
****
***** */ for(int a=;a<;a++)
{
printf("\n");
//当a=0; b<1
//当a=1; b<2
//当a=2; b<3
for(int b=;b<a+;b++)//1,2,3,4,5
{
printf("*");
}
} /*
*****
****
***
**
* */ printf("\n\n"); for(int c=;c<;c++)
{
printf("\n");
//第一行时候c=0,d=5
//第二行时候c=1,d=4
//第三行时候c=2,d=3
//规律 -----d = 5-c
for(int d=;d<-c;d++)
{
printf("*");
}
} /* ***** * *
***** ** **
***** *** ***
***** **** ****
***** ***** ***** */ printf("\n\n"); //第一行e=0;有4个空格
//第二行e=1;有3个空格
//第三行e=2;有2个空格
//第四行e=3;有1个空格
//第五行e=4;有0个空格 // ####
// ###
// ##
// # for(int e=;e<;e++)
{
printf("\n");
//打印空格的循环
for(int g=;g<-e;g++)
{
printf(" ");
}
//打印*的for循环
for(int f=;f<e+;f++)
{
printf("*");
}
} /* *****
****
***
**
*
*/
//空格的规律
//当i=0 ;有0个空格
//当i=1 ;有1个空格
//当i=2 ;有2个空格 //*号的规律
//当i=0,有5个*
//当i=1,有4个*
//当i=2,有3个* printf("\n\n"); for(int i=;i<;i++)
{
printf("\n");
//打印空格的循环
for(int j=;j<i;j++)
{
printf(" ");
}
//打印*的循环
for(int k=;k<-i;k++)
{
printf("*");
}
} printf("\n\n");
//9*9乘法表
for(int m=;m<;m++)
{
printf("\n");
//第一行m=0;n=1;
//第二行m=1;n=2
//第三行m=2;n=3
for(int n=;n<m+;n++)
{
printf("%d*%d=%3d ",n,m,n*m);
}
} float q= 6.3;
printf("q=%6.2f",q); return ;
}
#include stdio.h(3)的更多相关文章
- 第二次作业#include <stdio.h> int main() { int a,b,c,d,e; printf("请输入一个不多于五位的整数:\n"); scanf("%d",&a); if(a>=100000||a<=0) { printf("输入格式错误! \n"); } else { if(
1 判断成绩等级 给定一百分制成绩,要求输出成绩的等级.90以上为A,80-89为B,70-79为C,60-69为D,60分以下为E,输入大于100或小于0时输出"输入数据错误". ...
- c语言输入与输出库函数#include<stdio.h>
last modified: 2010-05-28 输入与输出<stdio.h> 头文件<stdio.h>定义了用于输入和输出的函数.类型和宏.最重要的类型是用于声明文件指针的 ...
- #include <stdio.h>
1 fflush 2 fgetc 3 fgets 4 fprintf 5 fputc 6 fputs 7 fscanf 8 fseek 9 ftell 10 perror 11 remove 12 r ...
- error: /usr/include/stdio.h: Permission denied 的一种情况分析
error: /usr/include/stdio.h: Permission denied 的一种情况分析 代码: #include <stdio.h> int main(){ prin ...
- #include<stdio.h> #include "stdio.h"
https://baike.baidu.com/item/#include <stdio.h> #include <stdio.h> 编辑 #include<stdio. ...
- #include stdio.h(B)
#include <stdio.h> int main() { //***********一.循环语句*************** //什么叫做循环: //重复的做某件事情,重复的执行一 ...
- #include stdio.h(A)
/* 第一个*******知识点工程相关信息******** 1.创建工程 文件->新建->工程->win32 console applecation ->文件名不能为汉字 2 ...
- #include stdio.h(7)
#include <stdio.h> int main() { //***********一.循环语句*************** //什么叫做循环: //重复的做某件事情,重复的执行一 ...
- #include stdio.h(6)
#include <stdio.h> int main() { //**************3.字符数组************** ] = {'i','P','\0','o','n' ...
- #include stdio.h(5)
#include <stdio.h> int main() { //1.数组的排序-冒泡排序 /* 1.规则:相邻的两个数据进行比较 2.如果有N个数据,需要选择N-1次参照物来比较, 因 ...
随机推荐
- LAMP实战之构建博客网站
1.首先检查LAMP环境 [root@cairui htdocs]# ps -ef | grep httpd php Mar03 ? :: /opt/apache2.2.34/bin/httpd -k ...
- Linux errno错误对照表
errno 在 <errno.h> 中定义,错误 Exx 的宏定义在 /usr/include/asm-generic 文件夹下面的 errno-base.h 和 errno.h,分别定 ...
- SQLException: Incorrect string value: '\xE4\xB8\xAD\xE5\x9B\xBD' for column at row 1
这个是由于新建数据库没有选择默认字符集导致的,只要选择utf8即可. 如果以上还无法解决,那可能是表里的varchar字符集也不对
- springboot整合activemq(三)配置文件
application.properties文件配置: #服务端口,8080被另一服务占用server.port=9090spring.activemq.broker-url=tcp://127.0. ...
- 06-图2 Saving James Bond - Easy Version (25 分)
This time let us consider the situation in the movie "Live and Let Die" in which James Bon ...
- pacemaker +corosync高可用
server1:yum install pssh-2.3.1-2.1.x86_64.rpm crmsh-1.2.6-0.rc2.2.1.x86_64.rpm -yyum install -y pac ...
- 停止mysql服务
停止mysql服务windowsnet stop mysql (service mysqld stop win10不能用) linux /etc/init.d/mysqld stop
- 问题解决Determine IP information for eth0.. no link present check cable
网上方法都没有解决:简单粗暴编辑里还原了默认设置OK了 网上方法1 一般解决办法: 第一步: 到/etc/sysconfig/network-scripts/ifcfg-eth<n>/et ...
- my10_使用binlog2sql闪回DML操作
下载git clone https://github.com/danfengcao/binlog2sql.git 原理使用python连接到指定的库,读取要恢复表的表结构和对应的binlog日志,在b ...
- Python 3.6 TypeEror: iter() returned non-iterator of type
环境:Python 3.6 class Fabs(object): def __init__(self,max): self.max = max self.n, self.a, self.b = 0, ...