Posts by Jordan Lordano • 1 point
1 post
-
0
votes1
answer73
viewsQ: Why is the result of this operation resulting in an integer and not a "float"?
Because the result of the algorithm below is 1, and it should be 1.83? #include <stdio.h> int main() { float y; y = 1 + (1 / 2) + (1/3); printf("o resultado é %f" , y); return 0; }…
casked Jordan Lordano 1