title: mod function not working why?
body: <pre><code>#include&lt;iostream&gt;
  using namespace std;
  int c;
  int fun_div();
  int fun_div(int a,int b){
  if(a%b==0){
  c=1;
     cout&lt;&lt;"Solution Available :\t"&lt;&lt;c;
  } else
  {
      c=0;
      }   
       return c;
      } 
  int main(){
      int c;
      int e,d;
      cout&lt;&lt;"enter two values : \n";
      cin&gt;&gt;e&gt;&gt;d;
      cout&lt;&lt;endl;
  }
  </code></pre>
  
  <p>error in finding the mod of two numbers and not compiling the program :</p>
  
  <p>error in finding the mod of two numbers and not compiling the program</p>