27.02.2014, 06:42
why i get 0.00 with this code:
Код:
printf("skaicius %.2f\n", 3/2);
printf("skaicius %.2f\n", 3/2);
printf("skaicius %.1f", 3/2); |
3/2
3_2
printf("skaicius %.2f\n", 3.0 / 2.0);