#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. java枚举enum equal与==

    原文链接:https://www.cnblogs.com/xiohao/p/7405423.html 问题 我知道Java枚举会被编译成一个包含私有构造参数和一堆静态方法的类,当去比较两个枚举的时候, ...

  2. 文件上传之Ajax篇

    AJAX上传文件 1.为什么要写这篇文章  楼主前几天去北京面试,聊起ajax上传文件, 面试官告之不能,遂讨论之,不得果,于是写下这篇文章,希望能和大家一起学习 2.正文 首先,要使用ajax上传文 ...

  3. c#静态变量赋值问题

    class Program { static int i = getNum(); int j = getNum(); ; static int getNum() { return num; } sta ...

  4. UESTC 趣味赛命题报告E

    https://lutece.xyz/contest/detail/10/ 题目很简单,套路题: 求n个数中选k个数使得gcd最大: 很容易想到,我们只需要将因子分解出来然后计数即可: (只是这个id ...

  5. js 点击图片放大,再点击缩小还原

    <!doctype html> <html lang="en"> <head> <meta charset="UTF-8&quo ...

  6. (转)接口自动化测试之http请求实践总结

    一.接口测试的基本思路 1.确定要测试接口的请求类型.接口是get请求还是post请求. 2.确定接口的参数.需要传输的参数有哪些,类型分别是什么,都有哪些要求等. 3.按照参数要求构造请求需要的参数 ...

  7. Ueeidor 使用

    setContent 要放在 ue.read(function(){ })中... js 字符串参数不要忘记 引号.....而且最好是单引号!!!

  8. 网络中常用的各种协议(针对TCP/IP协议组)

    网络层: ip协议->网络互连协议 用途:将多个包在网络中联系起来,传输数据包(不可靠传输),最基本功能就是寻址和分段功能,不提供端到端,路由到路由的确认,不提供重发和流量控制.是计算机网络能狗 ...

  9. nginx 安装第三方 模块

    查看nginx在安装时开启了哪些模块 如果你nginx是rpm包安装的,直接用如下命令nginx -V 如果你是源码包编译安装,假如你的安装路径是/usr/local/nginx,那么你可以使用: / ...

  10. Spring Boot学习资料汇总

    1. SpringFramework 重点学习 IOC容器,Web MVC framework,AOP 等    官网文档  http://docs.spring.io/spring/docs/cur ...