Hey guys I'm new to c++ and I was wondering if anyone could help me with my code? I need to make a code that can do the Pythagorean theorem with fractional components. I made a code that can do the theorem but I'm not sure how to do the fractional part. When ever I enter a fractional number in, the program assumes I'm giving values for both a and b instead of just one here is my code.Thanks for you help!Code:#include <iostream>#include <math.h> #include <cmath> using namespace std; int main () { float a, b, c; cout << "Optimal Driving Distance Calculator \nPlease input the distance of east:"; cin >> a; cout << "Please input the distance of north:"; cin >> b; c = a*a +b*b; c=sqrt(c); cout <<"The optimal driving distance is " << c << '.' << endl; system ("pause"); }