title: defining a divisible variable but prints out 0.00
body: <pre><code>//when I am trying to make a division in a float variable for some reason it
  //prints 000
  
  #include &lt;stdio.h&gt;
  #include &lt;math.h&gt;
  
  int main(){
    float price , discount  , total ;
  
    scanf ("%f",&amp;price);
  
    if (price &gt; 99 &amp;&amp; price &lt; 201)  
      discount = 10/100;   
      // i can also set &lt;&lt;discount&gt;&gt; variable 0.10  
    else if (price &lt; 301)    
      // but i can t understand why this way prints 00  
      discount = 10/100;
    else if (price &lt;401)  
      discount = 20/100;  
    else  
      discount = 30/100;
  
    total = price - discount;
    printf ("tha exete ekptwsei %.2f",discount);
  }
  </code></pre>