title: my c program to print student details is not working
body: <p>i build this simple c program that print details of the students . but for some odd reason the program is not working I really don't know how to fix this i've been trying to figure it out for a very long time.</p>
  <pre><code>
  #include &lt;stdio.h&gt;
  
  int main()
  {
     
     char name[20], section[20], department[20];
     
     int regi_number, phone_number;
    
     
     printf(&quot;enter your name: &quot;);
     scanf(&quot; %s&quot;, name);
     
      printf(&quot;enter your section: &quot;);
     scanf(&quot; %s&quot;, section);
  
      printf(&quot;enter your department: &quot;);
     scanf(&quot; %s&quot;, department);
     
      printf(&quot;enter your register number: &quot;);
     scanf(&quot; %d&quot;, regi_number);
     
      printf(&quot;enter your phone number: &quot;);
     scanf(&quot; %d&quot;, phone_number);
     
     
     printf(&quot;your name is %s&quot;, name);
     
     printf(&quot;your section is %s&quot;, section);
     
     printf(&quot;your department name is %s&quot;, department);
     
     printf(&quot;your register number is %d&quot;, regi_number);
     
     printf(&quot;your phone number is %d&quot; phone_number);
     
     
     
  }
  </code></pre>