Total: 60 Posts
Posts of Tag: Loop
How to Access Index in Python's for Loop
Python is a very high-level programming language, and it tends to stray away from anything remotely resembling internal data structure. Because of this, we ...Learn More
Loops in Python
Choosing the Right Loop Construct
Python offers a variety of constructs to do loops. This article presents them and gives advice on their specific usage. Furthermore, we will also have a look at...Learn More
Java Flow Control: for and for-each Loops
Conditional statements and loops are a very important tool in programming. There aren't many things we could do with code that can only execute line-by-lin...Learn More
Array Loops in Bash
In this article we'll show you the various methods of looping through arrays in Bash. Array loops are so common in programming that you'll almost always need to use them in any significant p...Learn More
C++ Program to Find Divisors of a Number
Below is the C++ program to find all the divisors of a number.
A divisor is a number that divides another number completely. For example D is the divisor of N if N%D=0.
Convert Binary to Decimal in C++
Here you will learn how to convert binary to decimal in C++.
We can convert a binary number into decimal in following way.
Multiply each digit from right to left by power of 2....Learn More
Prime Number in C++
Here you learn how to check prime number in C++.
Prime number is a number which is only divided by 1 or itself.
Below is the C++ program to check whether a number is prime of not.
Prime Numb...Learn More
Convert Decimal to Binary in C++
Here you will get program to convert a number from decimal to binary in C++.
How to convert decimal number to binary?
Divide the number by 2 and save the remainder somewhere.
C++ Program to Check Whether a Number is Palindrome or Not
Here you will get C++ program to check a number is palindrome or not.
A number is palindrome if it is equal to its reverse. For example 121 is palindro...Learn More
Loopif/elseBatch File Programming
Batch File Operators, If Else, Goto and For Loop
We have learned about variables and how to create the variables in batch files and how to manipulate them to perform different computational tasks. And also we ...Learn More