C++ Program to locate a no. in a list

//To locate a number in a list 
using namespace std; 
int main() 
    int i,n;         
    double x;     
    cout<<"Enter the size of the list"<>n;                    //Input the size of the list 
    double a[n];                //declare an array of the size entered by the user 
    cout<<"Enter the elements of the list\n"; 
    for (i=0;i>a[i]; 
    cout<<"Which no. do you wish to find?\n";     
    cin>>x;                    //Input the no. to be searched 

PhD researcher at Friedrich-Schiller University Jena, Germany. I'm a physicist specializing in theoretical, computational and experimental condensed matter physics. I like to develop Physics related apps and softwares from time to time. Can code in most of the popular languages. Like to share my knowledge in Physics and applications using this Blog and a YouTube channel.
[wpedon id="7041" align="center"]

Leave a Reply

Your email address will not be published. Required fields are marked *