我正在上C课,我不是很擅长,所以我想问你,我怎么解决这个问题:"Id返回1退出状态",我一直在努力解决这个问题.虽然如此,所以我非常感谢你的帮助.
#include <stdio.h>
#include<conio.h>
#include<windows.h>
int main()
{
int P, N, NP=0;
printf("Introduzca en nombre del producto:\n");
scanf("%f", &N);
printf("Introduzca en precio del producto:\n");
scanf("%f", &P);
if (P <= 1500)
NP=P*1.11;
else
NP=P*1.08;
printf("El producto %d cuesta %d", NP, N);
getche();
return 0;
}
Run Code Online (Sandbox Code Playgroud)
完整的错误列表是:
Permission denied
Id returned 1 exit status
Run Code Online (Sandbox Code Playgroud)