I have a lab I have to do for class. The assignment is to make a loan calculator.
This is what I have
When I try to build it I get an error "No input files"Code:/* Store the program in a file called intresest.c */
#include <stdio.h>
void main()
{
/* Declare and initialize variables */
double principal = 10000.0;
int term = 8.0;
double rate = 8.0;
double simple_interest = 0.0;
scanf(%d, &principal);
scanf(%d, &term);
scanf(%d, &rate);
scanf(%d, &simple_interest);
/* Compute the simpole inerest */
simple_interest = (principal * term * rate) / 100.0;
printf("Total Interest = %6.21f/n", simple_interest);
}
Is there any help I can have for this?

