3. WAP to input principle, rate, time and display simple interest.

 Code

#include <stdio.h>
int main(){
    int p,r,t,si;
    printf("Enter the princile: ");
    scanf("%d",&p);
    printf("Enter the rate: ");
    scanf("%d",&r);
    printf("Enter the time: ");
    scanf("%d",&t);
    si = (p*t*r)/100;
    printf("Simple interest is: %d",si);
    return 0;
}

OutPut

C Programming


0/Post a Comment/Comments

---[[ For More Inquiry Comment Down Below or Contact Us ]]---

Previous Post Next Post

Ads Before Post