c

Write a C program to add two distances using structure

C program to add two distances using structures. Distance values are represented in feet and inch. The C program will take the feet and inch values as input from the user and print the sum of the distances.

Read
c#

C# program to replace a substring in another string

C# program to replace a substring in another string. This program will use Replace method to replace a substring. Learn how to use Replace method and its exceptions.

Read
java

How to get a random line from a file in Java

Java program to get a random line from a file in Java. This program will take the path of the file and print a random line. You will learn how to use Random module to create a random number.

Read
C++

How to print an inverted pyramid in C++

Learn how to print an inverted pyramid in C++. This program will show you how to print an inverted pyramid using star or any other character. The program will take the height and print the inverted pyramid.

Read
C++

How to print a full pyramid in C++

C++ program to print a full pyramid using star or any other character. This post will show you how to print a full pyramid and how to write the algorithm for this.

Read
python

Python program to print a full pyramid

Python program to print a full pyramid. This post will show you how to print a full pyramid using star or any other character. It will also show you how to write the algorithm of the full pyramid.

Read
javascript

Example of JavaScript reduce with an array of objects

JavaScript example to use reduce() function with an array of objects. reduce is used to get a single value from an array. This post will show how to use reduce with example

Read
python

Python program to right rotate the elements of an array n number of times

Learn how to right rotate or right shift an array for n number of times in python. Right rotation or right shift moves all elements of an array towards right and the rightmost element moves to the start.

Read
flutter

How to create a switch in Flutter and its properties

Learn how to create a switch in Flutter with example. Switch class is used to create a switch widget in flutter. This post will show an example to implement switch and its different properties.

Read
flutter

Learn to create a snackbar in flutter with example

Flutter example program to create a snackbar. Snackbar is used to show a message briefly. This example will show you how to create a snackbar with examples.

Read