#include <stdio.h> #include <iostream> using namespace std; int main() { float n = 0; scanf("%f", &n); if (n >= 0) printf("%d", (int)(n + 0.5)); else printf("%d", (int)(n - 0.5)); return 0; }
#include <stdio.h> #include <iostream> using namespace std; int main() { float n = 0; scanf("%f", &n); if (n >= 0) printf("%d", (int)(n + 0.5)); else printf("%d", (int)(n - 0.5)); return 0; }