摘要: 歌星大赛,十个评委打分,去掉一个最高分,去掉一个最低分,求剩下的八个评分的平均分,作为选手的最终分数 流程图:伪代码: 源代码: #include<iostream>using namespace std;int main(){ int a[10],b[8]; int i,j,k,t,sum=0,A 阅读全文
posted @ 2023-05-17 19:47 夏季彼岸德 阅读(35) 评论(0) 推荐(0)
摘要: 求两个正整数的最小公倍数 流程图:伪代码:源代码: #include<iostream>using namespace std;int main(){ int a,b,t,i,num; cout<<"请输入两个整数"<<endl; cin>>a;cin>>b; if(a<b){ t=a; a=b; 阅读全文
posted @ 2023-05-17 18:04 夏季彼岸德 阅读(39) 评论(0) 推荐(0)