-5
my code is giving error id returned 1 and I have no idea why giving this error I did everything right, someone could help me?
#include <stdio.h>
#include <stdlib.h>
int main ()
{
float CP,LP,PP,LA,AA,PL,PC,FP,AT,QA,AAZ;
Printf ("\nApresente o comprimento,Largura e profundidade: ");
scanf ("%f, %f, %f", &CP, &LP, &PP);
printf ("\napresente largura e altura do azulejo: ");
scanf ("%f, %f", &LA, &AA);
{
PL = 2*CP*PP;
PC = 2*LP*PP;
FP = CP*LP;
AT = PL+PC+FP;
AAZ = LA*AA;
}
{
QA = (AT / AAZ)*1.05;
}
printf("\nA quantidade de azulejos para o revestimento da piscina e: %f", QA);
system ("PAUSE");
}
Hello Matheus. Please edit your question to include an explanation of what your question is.
– Luiz Vieira
yes I’ve edited ,sorry.
– matheus ferreira
No http://ideone.com/aLP1dC works fine. I passed the variables to
double
(there is no reason to usefloat
) and took thesystem("PAUSE");
– pmg
Wave is
Printf
isprintf
.– Lucas Lima
The function is missing
main
return some value too, no?– Cahe
id
? Won’t beld
(Linker)?– luiscubal
I think it is the error id. GCC here returned status 1 when I run this code.
– Lucas Lima
Homework? I saw another question with the almost equal code posted about 2h before that.
– Bacco
was right there not to edit and cause another problem I created another question, but I managed to solve the problem.
– matheus ferreira