#include <stdio.h>
double S(int A,int B);
int main() {
    printf("%f",S(2,16));
    return 0;
}

double S(int A,int B){
    double th2=0,th3=0,th4=0;
    double th1 = 1.0;
    for (int K=0; K < B; K++) {
        th4 = 0.0;
        while (th4 < A) {
            th2 = th3;
            th3 += th1;
            th4 = th3 * th3;
        }
        th3 = th2;
        th1 *= 0.1;
    }
    return th3;
}

double X2(int A,int B){
    double th2=0,th3=0,th4=0;
    double th1 = 1.0;
    int K=0;
    th2 = (A*A)-(4*B):
    if (th2 < 0) {
        return K;
    }
    th1 = (S(((A*A)-(4*B)),16)-A)/2
    return th1;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: