Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
float num = 5.6789;
O resultado tem de ficar com:
num 5.679 arredondado é 6 e truncado é 5
printf("O num %.3f arredondado é %.0f e truncado é %.0f", num, num, num);
printf("O num %.3f arredondado é %d e truncado é %.0f", num, num, (int)num);
printf("O num %.3f arredondado é %f e truncado é %d", num, num, num);
printf("O num %.3f arredondado é %.0f e truncado é %d", num, num, (int)num);
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!