From 924d1a5e28e8346639f93a63aede72ce3515c251 Mon Sep 17 00:00:00 2001 From: shariq-hub <62669036+shariq-hub@users.noreply.github.com> Date: Thu, 1 Oct 2020 01:47:48 +0500 Subject: [PATCH 1/2] Update ex1_1.cpp --- ch01/ex1_1.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ch01/ex1_1.cpp b/ch01/ex1_1.cpp index 905869df..9810ee22 100644 --- a/ch01/ex1_1.cpp +++ b/ch01/ex1_1.cpp @@ -1,4 +1,5 @@ int main() { + cout<<"Hello world"; return 0; } From 2426efc95b877759c8041a886dcc9ba2326eba62 Mon Sep 17 00:00:00 2001 From: shariq-hub <62669036+shariq-hub@users.noreply.github.com> Date: Thu, 1 Oct 2020 01:51:20 +0500 Subject: [PATCH 2/2] Update ex1_10.cpp --- ch01/ex1_10.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ch01/ex1_10.cpp b/ch01/ex1_10.cpp index 2bc61ef4..94ac8d29 100644 --- a/ch01/ex1_10.cpp +++ b/ch01/ex1_10.cpp @@ -1,11 +1,12 @@ // prints the numbers from ten down to zero.(use while) #include - +using namespace std; int main() { int i = 10; - while (i >= 0) - std::cout << i-- << " "; + while (i >= 0){ + cout << i-- << " "; + } return 0; }