fork(1) download
  1.  
  2. #include <stdio.h>
  3. int main ()
  4. {
  5. // Perimeter of a sector using radius, R is raduse, A is the angle of sector
  6. #define PERIMETER_SECTOR_R(r,d) (( 2 * (r) + 2 * 3.14159 * (r) * ((d)/360.0)))
  7.  
  8. float sector = PERIMETER_SECTOR_R(8,115);
  9. printf ("macro:%f",sector);
  10.  
  11. return (0); // success
  12.  
  13. } // main
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
macro:32.057014