Program output is different from manual calculation why is this happening? C language : <pre><code>#include &lt;stdio.h&gt;
#define s scanf
#define p printf
void main (){
    int P,I,A;
    float T,R;
    clrscr();
    p("PRINCIPAL: ");
    s("%i",&amp;P);
    p("RATE: ");
    s("%f",&amp;R);
    p("TERM: ");
    s("%f",&amp;T);
    R = R/100;
    I = P*R*T;
    A = P+I;
    p("I: %i\nMA: %i",I,A);
    getch();
}
</code></pre>

<p>This really bugs me, if i put PRINCIPAL: 1200 RATE: 3 TERM:1 I: 35 MA: 1235 but if you compute in manually the answer should be I: 36 MA: 1236 the number is decreasing by 1. Why is it happening? why does the answer differ from computer and manual computing?</p>
