Please hepl me about how to declare a function in dev-c++.I did it as following but it didn't work .
Code:
#include<stdio.h>
#include<stdlib.h>
 fac(int p);
void  main()
{ int a,d,e;
scanf("%d",&a);
scanf("%d",&d); 
e=fac(a)/(fac(d)*fac(a-d));
printf("%d",e);
return 0;
system("pause");

      }
      fac(int p)
      { int p,b,c;
       for(c=1;c<=p;c++){b=b*c;}
       return b;
                         }
                         
       
                        
              }
I used dev-c++ 4.9.9.2 .

Last edited by shabbir; 25Jan2010 at 08:21.. Reason: Code blocks