Exercise "math"

  1. Calculate (using C mathematical functions):

    Hints:

  2. Find out how many signigicant digits can variables of types float, double, and long double hold in them by trying to store the number 0.1111111111111111111111111111 in the variable and then printing out what is stored. The long double number must end with L:
    long double x = 0.1111111111111111111111111111L;
    
    otherwise it will be considered as double and truncated. Print numbers with format placeholders "%.25g" for float, "%.25lg" for double, "%.25Lg" for long double.