image.png

    1. #include <stdio.h>
    2. #include <stdlib.h>
    3. int main()
    4. {
    5. float num = 0.0;
    6. int result = 0;
    7. scanf("%f",&num);
    8. result = (int)num;
    9. result = (num-result)>=0.5?(result+1):result;
    10. printf("%d\n",result);
    11. }