java

Java example program to find the area of a Parallelogram

Java program to find the area of of a parallelogram. The program will take base and height as inputs from the user and print the area.

Read
python

How to create a color choosing dialog in tkinter python

Python tkinter example to create a color choosing dialog. We can use tkinter.colorchooser module to create a color chooser dialog.

Read
python

Python program to check if two sets are equal

Python program to check if two sets are equal or not. set is used to store collection of data and it doesn't allow any duplicate elements.

Read
C++

C++ program to return an array from a function using a structure

C++ program to return an array from a function using a structure. We can use a pointer or we can define a structure that includes an array.

Read
python

How to write a simple stopwatch in python

Python program to write a stopwatch. This stopwatch will record the time and once stopped, it prints the time spent.

Read
C++

C++ program to find the nearest smaller number to the left side in an array

C++ program to find the nearest smaller number to the left side in an array. This program will take one array of numbers as the input and find the nearest smaller.

Read
c

What is compilation and how compilation process works in C

What is compilation and how it works in C. This post will show you how compilation works with each step examples.

Read
python

How to insert an item to the start of an Ordered dictionary in Python

Python program to insert items to the start of an ordered dictionary. Ordered dictionary remembers the key-value pairs inserted.

Read
java

How to reverse a string in Java

How to reverse a string in Java. We will learn two different ways. The first way will iterate through the characters and the second way will use StringBuffer.

Read
c#

Introduction to for loop in C#

C# for loop explanation with examples. for loop is used to execute a code block for a given number of times.

Read