C++ Program to sort a list (descending order)

//sort_desc
#include 
using namespace std;
int main()
{  
    int n;        //size of list
    int i,j;         //for loops for reading, swapping etc
    double temp;    //swapping
    cout<<"Enter the size of the list"<>n;
    cout<<"Enter the elements of the list\n";
    double a[n];    //the list of no.s to be sorted
    for (i=0;i>a[i];
    }
    for (i=0;i

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 *