Void Function or Void Method
The method which doesn't return any value is known as void method. This is also known as void Function since method is the other name for function. In order to declare void method, we need to use void keyword before the method name. In order to understand this clearly let us study this with a code example.
CODE
EG 1 . Creating void method and trying to store inside variable, printing out in console and doing arithmetic Calculation.
#include <iostream>
using namespace std;
void PrintRightAngleTraingleShape(int row);
int main(){
    //storing void method inside a variable
    double add = PrintRightAngleTraingleShape(3);
    //printing out void method in console
    cout << PrintRightAngleTraingleShape(3) << endl;
    //Arithmetic Calculation in void method.
    PrintRightAngleTraingleShape(3) * 2 / 180;
    //(Ultimate goal)Printing Right angle triangle shape
    PrintRightAngleTraingleShape(10);
}
void PrintRightAngleTraingleShape(int row) {
    for (int i=1;i<=row;i++) {
        for (int j=1;j<=i;j++) {
        cout << "*";
    }
    cout << endl;
    }
}
(Click Here, For more exercises)