#include <stdio.h>
#include <math.h>
int ft_sqrt(int nb)
{
    int i = 0;
    while ((i*i) != nb)
    {
        if (i > nb)
            return 0 ;
        i++;
    }
    return (i);
}
int main() {
    printf("%d\n", ft_sqrt(50));
    return 0;
}

Embed on website

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