fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. double p, r, s, l;
  5.  
  6. p = 3.14159; r = 12.34;
  7.  
  8. s=r*r*p;
  9. l=2*p*r;
  10.  
  11. printf("s=%.3\n",s);
  12. printf("l=%4.7\n",l);
  13. }
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
s=%.3
l=%4.7