From 2e41a6b9e3375fa03ecb27308bbed6b4c8759001 Mon Sep 17 00:00:00 2001 From: Sachin Pawar <40672029+pwrsachin@users.noreply.github.com> Date: Wed, 30 Oct 2019 20:29:11 +0530 Subject: [PATCH] updateeven-odd endl flashes the output --- mathematics/fundamentals/even-odd-query.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mathematics/fundamentals/even-odd-query.cpp b/mathematics/fundamentals/even-odd-query.cpp index 198762b..e0af596 100644 --- a/mathematics/fundamentals/even-odd-query.cpp +++ b/mathematics/fundamentals/even-odd-query.cpp @@ -21,9 +21,9 @@ int main() int x, y; cin >> x >> y; if ((x + 1 <= n) && (A[x + 1] == 0) && (x != y)) - cout << "Odd" << endl; + cout << "Odd" << "\n"; else - cout << (A[x] % 2 == 0 ? "Even" : "Odd") << endl; + cout << (A[x] % 2 == 0 ? "Even" : "Odd") << "\n"; } return 0; -} \ No newline at end of file +}