为啥这样写不行啊·,结果是10
查看原帖
为啥这样写不行啊·,结果是10
631990
qinjiuayouhuo楼主2021/12/28 19:24
#include<iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
int main()
{
	int t,n,N,k=0;
	for(int i=0;i<10;i++)
	{
		cin>>t;
	}
	cin>>n;
	N=n+30;
	for(int j=0;j<10;j++)
	{
		if(t<=N)k++;
	}
	cout<<k;
	system("pause");
	return 0;
}
2021/12/28 19:24
加载中...