0
This is the code I made to try to solve the following question, it’s not working, someone can help me?
#include <stdio.h>
#include <math.h>
int main()
{
cos(a)
float d, hip;
printf("qual o angulo?\n");
scanf("%f", & a)
printf("qual a distancia da escada até a parede?\n");
scanf("%f", & d);
hip = d/cos(a)
printf("resultado:\n%f", cos(a))
return 0;
}
what the error, post the code and a photo without the invalid result you received makes it difficult to help you friend!
– Lodi
What is the meaning of this line: cos(a)? Maybe you want to say: float a;
– anonimo
"not working " - what exactly is the problem ? Don’t compile ? If not compile which error ? Compiles because it is not working ?
– Isac