#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次参照物来比较, 因 ...
随机推荐
- Jmeter-逻辑控制器之Foreach
ForEach 作用:用来遍历当前元素的所有可执行场景:在用户自定义变量中读取一系列相关的变量,该控制器下的采样器或控制器都会被执行一次或多次,每次读取不同的变量值: 输入变量前缀:在其中输入需要遍历 ...
- shell参数位置
1给脚本文件传参 #!/bin/bash echo "a $1" echo "b $2" 执行传参: $ ../test.sh a b 输出结果: a a b ...
- CF 给你三个数字L, R, K,问在[L, R]范围内有多少个数字满足它每一位不同数字不超过k个,求出它们的和(数位DP)
题意: 给你三个数字L, R, K,问在[L, R]范围内有多少个数字满足它每一位不同数字不超过k个,求出它们的和 分析:考虑用状态压缩 , 10给位0~9 , 如果之前出现过了某个数字x ,那就拿当 ...
- Photoshop在网页设计中的应用与方法
1.图像局部截取和图像尺寸调整 做网页设计时经常要用到的某张图像一部分,这就需要截取图像的局部.图像局部截取的方法很多,但使用Photoshop操作起来更方便.具体操作步骤如下: (1)在Photos ...
- hdu1028 Ignatius and the Princess III(递归、DP)
Ignatius and the Princess III Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K ...
- SSH防入侵
1.1 ssh防止入侵方法说明 如何防止SSH登录入侵小结: 1.用密钥登录,不用密码登陆 2.牤牛阵法:解决SSH安全问题 a.防火墙封闭SSH,指定源IP限制(局域网.信任公网) b.开启SSH只 ...
- idea(1)-idea初装
1.安装插件 Alibaba Java Coding Guidelines Free Mybatis plugin MyBatis Log Plugin Lombok pluginGsonFormat ...
- 进入wordpress中的模板文件
Wordpress的页面结构 一个简单的wordpress由 头部.内容.页脚组成,每个块中的每一个都由当前wordpress主题中模板文件生成. eg: 头:包含重要的信息,一般都是网页的头部. 内 ...
- 第一章javascript简介
javascript 当诞生于1995 最开始是目的是处理在服务器端进行的表单验证:让其在服务器端验证改为在服务端验证,大大提高速度(当时网络慢) 如今javascript是一门功能全面的语言,包含闭 ...
- 彻底理解和解决移动WEB开发中CLICK点透问题
在移动WEB开发中,有时候可能会出现点透问题,本文将围绕这个TAP点透问题,详细的讲述到底什么是点透,为什么会出现点透,如何避免出现点透,如果不可避免的出现了,如何解决解决移动WEB开发中CLICK点 ...