From c19a3a84d9fd0fb5fde8b12745fe294bbb9acce7 Mon Sep 17 00:00:00 2001 From: Jonathan Paulson Date: Thu, 18 Jun 2020 21:03:13 -0400 Subject: [PATCH] Add endl in sample code. --- content/1_Intro/Example_Problem.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/1_Intro/Example_Problem.md b/content/1_Intro/Example_Problem.md index f73f275..22180b8 100644 --- a/content/1_Intro/Example_Problem.md +++ b/content/1_Intro/Example_Problem.md @@ -47,7 +47,7 @@ int main() { for (int i = c; i < d; ++i) cover[i] = 1; int ans = 0; for (int i = 0; i < 100; ++i) ans += cover[i]; - cout << ans; + cout << ans << endl; // cout << ans << "\n"; is OK // cout << ans << " "; is NOT // cout << ans << "\n\n"; is NOT @@ -71,7 +71,7 @@ int main() { for (int i = c; i < d; ++i) cover[i] = 1; int ans = 0; for (int i = 0; i < 100; ++i) ans += cover[i]; - fout << ans; + fout << ans << endl; } ```