Examples of C part 55 add a2 + root (ab) + bz

Program :
#include<stdio.h>
#include<math.h>
main()
{
 float a,b;
 float sum;
 printf("Enter value of a\n");
 scanf("%f",&a);
 printf("Enter value of b\n");
 scanf("%f",&b);
 sum=pow(a,2)+sqrt(a*b)+pow(b,2);
 printf("Sum = %f\n",sum);
}
Output:
Enter value of a
4
Enter value of b
5
Sum = 45.472137
Explanation:
Taking values of a and b from user and doing the required calculation
sum=pow(a,2)+sqrt(a*b)+pow(b,2)
Finally printing sum value