Frequency of Numbers in a 1D Array

前端 未结 6 527
清酒与你
清酒与你 2021-01-27 03:54

its been 6 hours since I have been writing the code but to no avail, I don\'t no where I am making the mistake but I am making some. Its a frequency output program and output sh

6条回答
  •  甜味超标
    2021-01-27 04:07

    #include
    #include
    using namespace std;
    main()
    {   int count[10],key[10],n=10,m;
        int i,j,k,temp;
        cout<<"Enter The Size Of Array:-\n";
        cin>>n;
        int a[n];
        cout<<"Enter The Elements in Array:-\n";
        for(i=0; i>a[i];
        for(i=0; ia[j+1])
                {   temp=a[j];
                    a[j]=a[j+1];
                    a[j+1]=temp;
                }
            }
        for(i=0; i

提交回复
热议问题