# I need help!!!

 Jagan Dwarampudi · January 9, 2015 It's my 'C' code to find Simple and Compound Interest but it says ERROR. Please help me Boston. This is my code and it's not full.#include #include int main(){    int SI, CI, principal, amount, time, rate;    char decision;    printf("Calculate Your Simple or Compound Interest !!! \n\n");    printf("\nWhat is the Principal Amount? \n");    scanf(" %d", &principal);    printf("\nWhat is the Time Period? \n");    scanf(" %d", &time);    printf("\nWhat is the Rate of interest? \n");    scanf(" %d", &rate);    printf("\nWhich type of intrest? \n");    scanf(" %s", decision);    if( decision == simple ) {        SI = (principal * time * rate) / 100;        amount = SI + principal;        printf("\n Your SI is = Rs.%d \n", SI);        printf("\n Your total Amount is = Rs.%d \n", amount);    }    return 0;}

## Replies

- page 2

 Lazar Bulic · January 26, 2015 He wrote E0F using 0 (NULL) character instead of EOF with alphabet character O c student · January 26, 2015 i don't understand how that even happens... Lazar Bulic · January 26, 2015 To prevent more confusion he should remember what EOF stands for so he can't make mistake EOF = End Of Fileand for = STandarD Input Output = STandarD LIBrary
• 1
• 2

## C

130,030 followers