C++ program to calculate arithmetic mean

Arithmetic mean is equal to the average of numbers. It is equal to the sum of numbers divide by the count of numbers. For example, the arithmetic mean of n1,n2 and n3 is (n1 + n2 + n3)/3.

Read

C++ program to find the maximum and minimum of two numbers using cmath

cmath header provides two functions fmax and fmin to find out the maximum and minimum of two numbers. We can use one if-else block or simply use any one of these functions to find out the max or min between two.

Read

C++ fdim, fdimf and fdiml functions example

fdim, fdimf and fdiml functions are defined in the cmath header. These functions are used to find the difference between two numbers.

Read

Two different ways to find the circle area in C++

We can easily find out the area of a circle in C++. The formula to find the circle area is pi * radius * radius, where pi or π is the mathematical constant and radius is the radius of the circle.

Read

Java arraylist set method example

set method is used to replace one element in an ArrayList in Java. In this tutorial, I will show you how to use set method with one example.

Read

How to use stagehand to create dart projects

stagehand is a tool to create one dart project easily using the command line. You can use it on command line and create different types of projects. It comes with a couple of different templates that you can use to quickly create your dart project with the minimum required files.

Read

Using optional parameters as required in dart

Optional parameters in a dart function are optional i.e. even if we don't pass them to a function, the program will work. But, if you want to change one optional parameter to required, you can either change it directly to required or use the required annotation. The program will still work if you use the required annotation but it will show one warning.

Read

Dart scope and lexical scoping

Scope is the area that we can access one variable or function. If two variables are under the same scope, one can access another. If they are in different scopes, the program will throw an error.

Read

Dart program to find factorial of a number recursively

The factorial is the product of a number and all the numbers less than it. For example, factorial of 4 is 4 * 3 * 2 * 1 i.e. 24. If you want to find the factorial programmatically, you can either use one loop and multiply all numbers starting from 2 to that number or you can use one recursive method.

Read

Different examples to create dart functions

This post will show you different examples of dart functions. Basically, the following three are the main points in a dart function :.

Read