C++

C++ program to implement linear search

C++ program to implement linear search or sequential search. This program will show you how linear search works and how to implement it in C++ with examples.

Read
C++

2 different C++ programs to implement selection sort

C++ program to implement selection sort. This post will show you how to implement selection sort in ascending and descending order with examples for each.

Read
python

2 ways in Python to convert temperature in Celsius to Fahrenheit

Python program to convert temperature in celsius to Fahrenheit with user input values. We will learn how to write this program by using a separate method and without using a separate method.

Read
python

4 different Python programs to check if a number is a perfect number

Python program to check if a number is a perfect number or not in 4 different ways. The program will take one number as input from the user and check if it is a perfect number or not.

Read
c

C program to print an alphabet triangle with user-input height

C program to print an alphabet triangle or triangle of alphabet with user-input height. We will learn two ways to write this program, by using for loops and by using while loops in C.

Read
java

3 ways in Java to print a reverse half pyramid pattern

Java program to print a reverse half star and number pyramid pattern in 3 different ways. We will learn how to use for loops, while loops and number pyramid pattern with examples.

Read
python

Python program to print the multiplication table of a specific number

Python program to print the multiplication table of a number in two different ways. We will learn how to use a for loop and how to use a while loop to print the multiplication table.

Read
python

3 ways in Python to calculate GCD or HCF of two numbers

Python program to calculate GCD or HCF of two user input numbers. Learn how to do it by using a for loop, by reverse looping and by Euclid's division algorithm.

Read
C++

2 different C++ program to copy the content of one file to another

C++ program to copy the content of one file to another. We will learn 2 different ways to do it, by using fgetc, fputc and by using fstream in this post with examples.

Read
python

Python program to check if a number is a Niven or Harshad number

Python program to check if a number is a Niven or Harshad number or not. The program will take one number as input from the user and print if it is a Niven or Harshad number.

Read