#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)的更多相关文章

  1. 第二次作业#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时输出"输入数据错误". ...

  2. c语言输入与输出库函数#include<stdio.h>

    last modified: 2010-05-28 输入与输出<stdio.h> 头文件<stdio.h>定义了用于输入和输出的函数.类型和宏.最重要的类型是用于声明文件指针的 ...

  3. #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 ...

  4. error: /usr/include/stdio.h: Permission denied 的一种情况分析

    error: /usr/include/stdio.h: Permission denied 的一种情况分析 代码: #include <stdio.h> int main(){ prin ...

  5. #include<stdio.h> #include "stdio.h"

    https://baike.baidu.com/item/#include <stdio.h> #include <stdio.h> 编辑 #include<stdio. ...

  6. #include stdio.h(B)

    #include <stdio.h> int main() { //***********一.循环语句*************** //什么叫做循环: //重复的做某件事情,重复的执行一 ...

  7. #include stdio.h(A)

    /* 第一个*******知识点工程相关信息******** 1.创建工程 文件->新建->工程->win32 console applecation ->文件名不能为汉字 2 ...

  8. #include stdio.h(7)

    #include <stdio.h> int main() { //***********一.循环语句*************** //什么叫做循环: //重复的做某件事情,重复的执行一 ...

  9. #include stdio.h(6)

    #include <stdio.h> int main() { //**************3.字符数组************** ] = {'i','P','\0','o','n' ...

  10. #include stdio.h(5)

    #include <stdio.h> int main() { //1.数组的排序-冒泡排序 /* 1.规则:相邻的两个数据进行比较 2.如果有N个数据,需要选择N-1次参照物来比较, 因 ...

随机推荐

  1. 模仿 spring IOC Annotation版自动装配

    spring 有两大核心 IOC和AOP.  IOC (inversion of control) 译为 控制反转,也可以称为 依赖注入 ; AOP(Aspect Oriented Programmi ...

  2. select和epoll原理和区别

    对于select和poll,其主要原理跟epoll不同 poll和select的共同点就是,对全部指定设备(fd)都做一次poll,当然这往往都是还没有就绪的,那就会通过回调函数把当前进程注册到设备的 ...

  3. 3.Best Time to Buy and Sell Stock(买卖股票)

    Level: ​ ​ Easy 题目描述: Say you have an array for which the ith element is the price of a given stock ...

  4. 详解linux下批量替换文件内容的三种方法(perl,sed,shell)

    在建设本网站的时候,发现新建了很多的网页,突然发现,每个文件都需要进行修改一样的内容,一个一个打开很是麻烦,所以,总结了一下如何快速修改一个目录下多个文件进行内容替换.第三种方法用的不多 方法一 使用 ...

  5. IDEA中jsp页面写out.println会报错?

    解决办法: (1)在WEB-INF目录下新建一个lib目录,并把Tomcat安装目录下的如下两个jar包复制过来. (2)选择jsp-api.jar,右键,Add as Library. (3)在Fi ...

  6. 复习一知识点:回调函数callback

    比如我们常用的异步请求: $.ajax({ url:"test.json", type: "GET", data: {username:$("#use ...

  7. ubuntu开机自启动服务管理

    安装sysv-rc-conf sudo apt-get install sysv-rc-conf 执行下面,查看服务情况 sudo sysv-rc-conf 启动服务有以下两种方式 update-rc ...

  8. FlowLayout(流式布局)用法

    https://blog.csdn.net/liujun13579/article/details/7771191

  9. Codeforces - 466C 双指针

    首先要判sum是否是3的整数倍 然后把符合条件的前缀和以及后缀和分别加入到静态vector中 最后扫一下j和k定位在哪然后求总长的差来更新答案 注意i j k至少隔1位,所以lower_bound是s ...

  10. PS常用快捷键大全

    察看图像类别 说明:: --- Shift键 : --- 空格键         *--- 在Imageready中不适用 § --- 只在Imageready中可用 动作 结果 双击工具箱::或Ct ...