fork download
  1. #include<stdio.h>
  2. #include<math.h>
  3. int main()
  4. {
  5. float a,b,m;
  6. scanf("%f %f",&a,&b);
  7. m=(a*a+2*a*b+b*b);
  8. printf("%f",m);
  9. return 0;
  10. }
Success #stdin #stdout 0.01s 5408KB
stdin
24
stdout
576.000000