#include <iostream>
using namespace std;

int main() {
    int arr[]={2,3,4,5,66,7,8,9,444,2,35,45};
    int z = sizeof(arr)/4;
    int x;
    cout<<"enter a number "<<endl;
    cin>>x;
    int count;
    count=0;
    for (int i =0;i<=z ;i++ ) {
        if (x<arr[i]) {
            count = count+1;
        }
    }
    cout<<count;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: