fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. float k, c, S;
  5. int a, b;
  6. scanf("%f%d%d", &k, &a, &b);
  7. c = k * (a / b);
  8. S = pow(a, 2) + b / k;
  9. printf("c = %.1f. S = %.1f.", c, S);
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5296KB
stdin
5.4
6
8
stdout
c = 0.0. S = 37.5.