博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
袁韬淳第五次作业
阅读量:4597 次
发布时间:2019-06-09

本文共 1093 字,大约阅读时间需要 3 分钟。

#include
int main(){ int a,b,c,i; printf("输入三个整数:"); scanf("%d %d %d",&a,&b,&c); if(a>b) { i=b; b=a; a=i; } if(a>c) { i=c; c=a; a=i; } if(b>c) { i=c; c=b; b=i; } printf("这三个数从小到大分别是:%d %d %d",a,b,c); return 0;}
#include
int main() {
int a=10,b; for(;a>0;a--){ for(b=1;b<=10-a;b++)printf(" "); for(b=1;b<=a-1;b++)printf("*"); printf("\n");} }
#include
int main(){ int a; int b; int d=10; printf ("请输入总路程与停留时间:"); scanf ("%d %d",&a,&b); if (a<=3) { printf("应付:%d",d+2*(b/5)); } else if(3
#include
int main() { int a;//重量 int b; scanf("%d %d",&a,&b); double c=(double)(a-b)*100/b; if(10
50) printf("超重!吊销身份证"); else printf("未超重"); return 0;}
#include 
int main(){ int i,A,B,C,D,E,n,s; A=B=C=D=E=0; printf("输入总人数n和他们的分数:"); scanf("%d",&n); for(i=0;i

 

转载于:https://www.cnblogs.com/cyqbaobao/p/5958590.html

你可能感兴趣的文章
(Python第四天)字符串
查看>>
个人介绍
查看>>
使用python动态特性时,让pycharm自动补全
查看>>
关于R软件的安装
查看>>
MySQL数据库免安装版配置
查看>>
你必知必会的SQL面试题
查看>>
html5 Canvas绘制时钟以及绘制运动的圆
查看>>
Unity3D热更新之LuaFramework篇[05]--Lua脚本调用c#以及如何在Lua中使用Dotween
查看>>
JavaScript空判断
查看>>
洛谷 P1439 【模板】最长公共子序列(DP,LIS?)
查看>>
python timeit
查看>>
Wireless Network 并查集
查看>>
51nod 1019 逆序数
查看>>
Java_Set用法总结
查看>>
Codeforces Round #160 (Div. 2) D. Maxim and Restaurant(DP)
查看>>
Exchange Port
查看>>
oracle 01578
查看>>
在source中查看代码
查看>>
pip install xxx -i https://pypi.tuna.tsinghua.edu.cn/simple
查看>>
apache环境下配置多个ssl证书搭建多个站点
查看>>