fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. float a;
  6. printf("a:");
  7. scanf ("%f", &a);
  8.  
  9. float V= a*a*a;
  10. printf("V:%f\n",V);
  11.  
  12. float S= 6*a*a;
  13. printf("S:%f\n",S);
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5460KB
stdin
Standard input is empty
stdout
a:V:0.000000
S:0.000000