fork download
  1. #include <stdio.h>
  2. float div(int m,int n){
  3. // float l;
  4. //l=m/n;
  5. return(float) m/n;
  6. }
  7.  
  8.  
  9. int main(void){
  10. int a=10;
  11. int b=3;
  12. float c=div(a,b);
  13. printf("%d/%d=%f\n",a,b,c);
  14.  
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
10/3=3.333333