# include <stdio.h>
double simpleInterest (double Princ, double Rate, int Time)
{
double value;
value = Princ*Rate*Time;
retrun value;
}
int main (int argc, char * argv [])
{
printf ("value is £%5.2\n", simpleInterest(100,0.05,1);
printf ("value is £%5.2\n", simpleInterest(1,0.01,10);
}
我收到一条错误消息,提示“预期”';' 在 ')' 标记之前,但我不明白我放了一个;在每一行之后。我应该把其他任何地方吗?