概述
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c,n=0,m=0,l=0;
scanf("%d",&a);
for(int i=1;i<=a;i++)
{
scanf("%d",&b);
if(b==1)m++;
if(b==5)n++;
if(b==10)l++;
}
cout<<m<<"n"<<n<<"n"<<l;
return 0;
}
转载于:https://www.cnblogs.com/5t2y0/p/9240628.html
最后
以上就是超帅烧鹅为你收集整理的循环结构 整数的个数的全部内容,希望文章能够帮你解决循环结构 整数的个数所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复