From 15d3f075cc94bee9ec8ab9eb6e8032c76c83ae58 Mon Sep 17 00:00:00 2001 From: Rishabh Sethi <54479777+i-am-expert@users.noreply.github.com> Date: Wed, 2 Oct 2019 18:29:11 +0530 Subject: [PATCH] Updated the code. Added the else part of the code to make it more understandable. --- C++/08_cppBeginners.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/C++/08_cppBeginners.cpp b/C++/08_cppBeginners.cpp index 8c121f5..b0cad3b 100644 --- a/C++/08_cppBeginners.cpp +++ b/C++/08_cppBeginners.cpp @@ -7,8 +7,10 @@ int main() int a = 98; int b = 76; - if(a > b){ // Tests if a is greater than b. + if(a > b) { // Tests if a is greater than b. cout << "Bucky is AWESOME!!!!" << endl; + } else { // Tests if a is smaller or equal to b + cout << "You are AWESOME!!!!" << endl; } return 0;