#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次参照物来比较, 因 ...
随机推荐
- 前端JS AES加密 后端PHP AES加解密
<!DOCTYPEhtml> <html> <head> <title>aes demo</title> </head> < ...
- P3272 [SCOI2011]地板
\(\color{#0066ff}{ 题目描述 }\) lxhgww的小名叫"小L",这是因为他总是很喜欢L型的东西.小L家的客厅是一个R*C的矩形,现在他想用L型的地板来铺满整个 ...
- 1.Tow Sum(两数和)
Level: Easy 题目描述: Given an array of integers, return indices of the two numbers such that they add ...
- Spring注解实现定时功能以及Quartz定时器
一:Spring注解实现--------->Spring3.0以后自带的task,可以将它看成一个轻量级的Quartz 1:maven配置: <!-- quartz--> <d ...
- 3. mybatis # 与 $ 的区别
mybatis # 与 $ 的区别 1.# % 号必须写在test中 应用场景:模糊查询 配置文档mapper.xml <select id="selectBlogByTitle&qu ...
- 毕业设计 python opencv实现车牌识别 形状定位
主要代码参考https://blog.csdn.net/wzh191920/article/details/79589506 GitHub:https://github.com/yinghualuow ...
- yii2 basic VER
assets/ contains assets definition 包含资源定义 commands/ contains console commands (controllers) 包含命令行命令, ...
- Jenkins自动化CI CD流水线之4--Master-Slave架构
一.介绍 jenkins的Master-slave分布式架构主要是为了解决jenkins单点构建任务多.负载较高.性能不足的场景. Master/Slave相当于Server和agent的概念.Mas ...
- Spring Boot学习资料汇总
1. SpringFramework 重点学习 IOC容器,Web MVC framework,AOP 等 官网文档 http://docs.spring.io/spring/docs/cur ...
- oracle序列的缓存
在高并发的数据库系统中,序列的缓存也要相应的调大.现在看看数据库自己的一个高并发序列的定义. 当我们向数据库发送一个请求时,监听接待,然后oracle会启动一个后台进程(这个进程就是通常所说的数据库并 ...