fork(14) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. float f = abs( 2 );
  6. printf( "%f \n", f ); // 2.000000
  7.  
  8. float g = abs( 1.5 );
  9. printf( "%f \n", g ); // 0.000000
  10.  
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
2.000000 
0.000000