Find simple interest

 #include<stdio.h>


int main(){

    int principal=100, rate=4, years=1;

    int simpleInterest = (principal * rate * years)/100;

    printf("The value of simple Interest is %d", simpleInterest);

    return 0;

}

Comments

Popular posts from this blog

Snake game.c

Type declaration

Array with function