Code
// WAP To Find Simple Interest Of A Certain Amount Of Money... #include <stdio.h> int main() { int principal, rate, year; printf("Enter the value of principal amount \n"); scanf("%d", &principal); printf("Enter the value of rate \n"); scanf("%d", &rate); printf("Enter the year of time given. \n"); scanf("%d", &year); int simpleintrest = (principal * rate * year) / 100; printf("The value of simple intrest is %d \n", simpleintrest); return 0; }
Output
Enter the value of principal amount 500 Enter the value of rate 7 Enter the year of time given. 8 The value of simple intrest is 280