You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#include<iostream>
|
|
using namespace std;
|
|
int a[15];
|
|
int main() {
|
|
int b,B,A;
|
|
for(int i=1; i<=10; i++)
|
|
cin>>a[i];
|
|
cin>>b;
|
|
B=b+30;
|
|
int c=0;
|
|
for(int i=1; i<=10; i++) {
|
|
if(a[i]<=B)
|
|
c++ ;
|
|
}
|
|
cout<<c;
|
|
return 0;
|
|
} |