Lets write a C program to calculate Generic Root of a Number using Mathematical Formula. Related Read: C Program to…