User Posts: royal52
0
How to Start an Online Business in 4 Steps
0

As the world becomes more interconnected through the internet, running your business online has become one of the most crucial ways to stay relevant. And you ...

0
Cybersecurity in the Remote Era: Safeguarding Your Business in a Virtual Workspace
1

It's no secret that remote work has skyrocketed during the pandemic. We've gone from occasional Zoom meetings to a steady workflow of virtual meetings, cloud ...

0
Extensive Guide on NFT Marketplace Development: Features, Examples, and Cost
1

As users' interest in decentralized technology, namely blockchain, has grown, new startups and industries based on this technology have emerged. One of the ...

0
How to run a Docker Container in a Host Network Mode
1

By using a docker compose, you can run a Docker container in a host network mode by defining network mode in a docker-compose file. With this configuration ...

0
How to override the package installation for nodejs
0

Download Nodejs with the following command on AWS Linux curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash - sudo apt-get install -y nodejs ...

0
Why Use Custom Printed Drink Bottles for Promotional Purposes? 
0

From time immemorial, branding has acted as a powerful weapon to grow any business. When big companies have to succeed from competing brands, brand campaigns ...

0
How to use Node-Red plugin node-bacnet-contrib-extended to read Bacnet Devices
5

The node-bacnet-contrib-extended is built on top of node-bacnet javascript library, in contrast to other bacnet plugins available in Node-red it provides ...

0
How to use snowflake data cloud
-1

Securely storing data is one of the most important things in all of our lives. Haven't you ever had a security breach and your password was stolen? If so, you ...

0
Time Savers to Help You Become a Better Computer User
1

When you feel that your computer is running slower than usual, it's not always time to buy a new device. A few simple tweaks can boost your system's ...

0
How Do I Find My SERPs History in the Google SERP checker?
0

SERP is a web page that a searching robot gives after a searching request. SERPs results let you understand what the place of your website in Google is. The ...

0
Best Tips to Help You Find the Professional SEO Experts
1

If you don’t target SEO, you can miss out on a lot of leads on your website. SEO is one of the best techniques to get traffic. It gives an immediate boost to ...

0
Why Learning JavaScript Is Useful
0

JavaScript is a popular programming language. However, people still ask a similar question: “What can be done with JavaScript?” JavaScript forms the base of ...

Browsing All Comments By: royal52
  1. just write if(array[j] lesser then array[j+1]) instead of if(array[j] greater then array[j+1]) and it will sort the array in descending order.

  2. I have updated my comment with a code block containing while loop, cheers.

  3. Okay, that’s the code of Bubble sort by using While Loop written in C++.

    while(i < 4) { int j = 0; while(j < 4) { if(array[j]>array[j+1])
    {
    hold=array[j];
    array[j]=array[j+1];
    array[j+1]=hold;
    }
    j++;
    }
    i++;
    }

    If you have any other questions then let me know, thanks.

  4. yes we can use a while loop.

  5. thanks for pointing out.

  6. thanks for pointing out !!!

HellGeeks
Logo