/* * tourint.c * * This program asks the user for an amount of deposit, * and an annual interest rate then * calculates the interest earned on the deposit. */ #include int main(void) { int dep; float rate, interest; printf("Enter an amount to deposit: "); scanf("%d", &dep); printf("Enter an annual interest rate: "); scanf("%f", &rate); interest = dep * rate / 100; printf("The interest after one year on "); printf("deposit of $%d is $%f.\n", dep, interest); return 0; }