Contact Learn C
Copy Program Share Program

Program 362: Display the output of a2+√ab+b2

Program 362: Display the output of a2+√ab+b2
 
#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);
}
Explanation:
 //Coming Soon


Output:

Display the output of a2+√ab+b2

Download App and Learn when ever you want

Get it on PlayStore
Get it on Amazon App Store
Get it on Aptoide