From fe46633344d4de1572bc2b4d4f893f466567e880 Mon Sep 17 00:00:00 2001 From: "Bob(SokolovMI)" Date: Sun, 28 May 2023 21:14:31 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=D0=B0?= =?UTF-8?q?=20=D0=BC=D0=B8=D0=BD=D0=B8=D0=BC=D1=83=D0=BC=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/project.cpp b/project.cpp index 72eeb38..db3cfa1 100644 --- a/project.cpp +++ b/project.cpp @@ -12,6 +12,12 @@ int main() cout << "A / B = " << a / b << '\n'; if (a > b) { - cout << a; + cout << a << '\n'; + } + if (a < b) { + cout << a << '\n'; + } + else { + cout << b << '\n'; } }