From 323266dad777322f4db4219614ee66c160e4289c Mon Sep 17 00:00:00 2001 From: "harrisonj2@berea.edu" Date: Thu, 13 Aug 2026 15:41:33 -0400 Subject: [PATCH] Fixes build introduction build errors --- pretext/Control_Structures/conditionals.ptx | 7 ++++--- pretext/Control_Structures/for_loop.ptx | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/pretext/Control_Structures/conditionals.ptx b/pretext/Control_Structures/conditionals.ptx index 12dffef..fecab26 100644 --- a/pretext/Control_Structures/conditionals.ptx +++ b/pretext/Control_Structures/conditionals.ptx @@ -1,8 +1,9 @@ -
Conditionals -

Conditional statements in Python and C++ are very similar.

- + +

Conditional statements in Python and C++ are very similar.

+
+ Simple if

In Python, we write a simple if statement in the following way:

if condition:
diff --git a/pretext/Control_Structures/for_loop.ptx b/pretext/Control_Structures/for_loop.ptx
index 1c70c23..cd4cef7 100644
--- a/pretext/Control_Structures/for_loop.ptx
+++ b/pretext/Control_Structures/for_loop.ptx
@@ -1,7 +1,7 @@
-
 
For Loops -

Even though the while type of construct is very useful in a wide variety of + +

Even though the while type of construct is very useful in a wide variety of situations, another iterative structure, the for for statement, can be used to iterate across a range of values easily. A for statement allows us to write a loop that is executed a specific number of times.

@@ -41,7 +41,8 @@ using namespace std;

The code will use cout five times. The value of the variable i will start at 0 and go through the full sequence of values 0,1,2,3,4. This value is then squared and printed.

- + + Check yourself
#include <iostream>
 using namespace std;