In this tutorial, we will learn how to shift or place all zeros to the extreme right of a number in C++. We can solve this problem in linear time complexity using String. So, let u.... Read More
Hi there, I have come up with this program that will help you make a decision, whether it is through tossing a coin or maybe rolling dice or through choosing a playable card throug.... Read More
This tutorial topic is: How to remove leading zeros from a number or string in C++. For example, if you have a string or number which contains zeros as prefix, then you can easily .... Read More
This is a pretty interesting topic and there are many ways to solving this problem. Well providing all of you know what cube root is (for those who don’t its the number which.... Read More
This tutorial is about the increment (++) and decrement (–) operator in C++. The increment operator increments the value of a variable while the decrement operator decrements.... Read More
In this tutorial, you will learn how to write your first C++ program. It’s pretty simple. All you have to do is to write a “Hello, world!” program that is you hav.... Read More
In this tutorial, we will learn how to compare two strings in C++. We will check whether they are equal or not. For example- str1=”codespeedy” str2=”codespeedy.... Read More
This tutorial will show you how to round off numbers to their nearest 10th multiple in C++. This means if we enter the number 21 the program will give an output 20. And if we give .... Read More