★★郁闷====如此简单的程序居然没有查出错误
/*****************************************************************
** HighlightCodeV3.0 software by yzfy(雨中飞燕) http:// **
*****************************************************************/
#include<stdio.h>
#include<math.h>
void main(void)
{
double a=0,n=0,p=0,l=0;
printf("please input a,n,p\n");
scanf("%f%f%f",&a,&n,&p);
printf("a=%7.2f\nn=%7.2f\np=%7.2f\n",a,n,p);
l=a*pow((1+p),n)-a;
printf("l=%7.2f\n",l);
}
** HighlightCodeV3.0 software by yzfy(雨中飞燕) http:// **
*****************************************************************/
#include<stdio.h>
#include<math.h>
void main(void)
{
double a=0,n=0,p=0,l=0;
printf("please input a,n,p\n");
scanf("%f%f%f",&a,&n,&p);
printf("a=%7.2f\nn=%7.2f\np=%7.2f\n",a,n,p);
l=a*pow((1+p),n)-a;
printf("l=%7.2f\n",l);
}
谁能帮忙找到错误?太郁闷了