#include <stdio.h>
#define s scanf
#define p printf
void main (){
    int P,I,A;
    float T,R;
    clrscr();
    p("PRINCIPAL: ");
    s("%i",&P);
    p("RATE: ");
    s("%f",&R);
    p("TERM: ");
    s("%f",&T);
    R = R/100;
    I = P*R*T;
    A = P+I;
    p("I: %i\nMA: %i",I,A);
    getch();
}
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?
 
     
     
    