取一组数据的最大值和最小值:(实验课第一题给我整傻了)先定义两个变量max,min,注意,这是变量而不是函数,所以在后面用的时候只起到了一个比较的作用。例如if(c>max)max=c.就是将这组数据的每一个数据与max比较,取较大的那一个。#include<stdio.h>intmain(){inta,b,c,max,min;while(scanf("%d"
分类:
其他好文 时间:
2020-11-06 01:32:35
阅读次数:
18
// ex1.cpp #include <stdio.h> int main() { int a=5, b=7, c=100, d, e, f; d = a/b*c; e = a*c/b; f = c/b*a; printf("d=%d, e=%d, f=%d\n",d,e,f); return 0 ...
分类:
其他好文 时间:
2020-11-06 01:25:28
阅读次数:
20
C语言是一门结构化的程序设计语言1.顺序结构2.选择结构3.循环结构什么是语句?C语言中由一个分号;隔开的就是一条语句比如printf(“hehe”);1+2;分支语句(选择结构)if语句1if(表达式)单分支语句;如果if是真那么语句执行否则什么都不执行#include<stdio.h>intmain(){inta=0;printf("你打了多少行有效代码?\n"
分类:
编程语言 时间:
2020-11-06 00:48:55
阅读次数:
22
#include <stdio.h> int main() { int a=5, b=7, c=100, d, e, f; d = a/b*c; e = a*c/b; f = c/b*a; printf("d=%d, e=%d, f=%d\n",d,e,f); return 0; } 在int型中, ...
分类:
其他好文 时间:
2020-11-04 17:46:57
阅读次数:
13
1.Auto Rename Tag (标签插件) 2.Bracket Pair Colorizer(对代码中的括号添上一抹亮色) 3.Chinese language Pack for Visual Studio Code(vscode中文插件) 4.Code Spell Checker(TS和JS ...
分类:
其他好文 时间:
2020-11-04 17:38:33
阅读次数:
19
//ex1.cpp #include<stdio.h> int main(){ int a=5,b=7,c=100,d,e,f; d=a/b*c; e=a*c/b; f=c/b*a; printf("d=%d,e=%d,f=%d\n",d,e,f); return 0; } //ex2.cpp #i ...
分类:
其他好文 时间:
2020-11-02 10:39:02
阅读次数:
18
/* A simple C program */ #include <stdio.h> int main () { printf("202083290312.\n"); printf("hello,C\n"); printf("I can be hard!"); return 0; getchar; ...
分类:
其他好文 时间:
2020-11-02 10:13:04
阅读次数:
23
Elyra is a set of AI-centric extensions to JupyterLab Notebooks. Elyra currently includes: AI Pipelines visual editor Ability to run a notebook as a b ...
分类:
其他好文 时间:
2020-11-02 09:55:00
阅读次数:
19
实验结果: ex1: 1 #include <stdio.h> 2 int main() { 3 int a=5, b=7, c=100, d, e, f; 4 5 d = a/b*c; 6 e = a*c/b; 7 f = c/b*a; 8 9 printf("d=%d, e=%d, f=%d\n ...
分类:
其他好文 时间:
2020-11-01 22:18:22
阅读次数:
14
任务1 //ex1.cpp #include<stdio.h> int main(){ int a=5, b=7, c=100, d, e, f; d=a/b*c; e=a*c/b; f=c/b*a; printf("d=%d, e=%d, f=%d",d,e,f); return 0; } d=5 ...
分类:
其他好文 时间:
2020-11-01 22:08:49
阅读次数:
15