You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-8Lines changed: 7 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,15 +23,11 @@ In a text file `assignment2.txt`, answer the following questions:
23
23
24
24
2. What are logical errors and how are they different from syntax errors?
25
25
26
-
3. What is the outcome of the following conditional statement if the value of variable x is 10?
27
-
```
28
-
x >= 10 && x < 25 && x != 12
29
-
```
26
+
3. What is the outcome of the following conditional statement if the value of variable x is 10?
27
+
```x > = 10 && x < 25 && x != 12```
30
28
31
-
4. Is the following expression valid? Why or why not?
32
-
```
33
-
0 < x < 15
34
-
```
29
+
4. Is the following expression valid? Why or why not?
30
+
```0 < x < 15 ```
35
31
36
32
5. Which of the following are valid? What is wrong with any that are invalid?
37
33
1. if (a > b) then c = 0;
@@ -43,3 +39,6 @@ x >= 10 && x < 25 && x != 12
43
39
Please include your name and a description in a comment at the top of your code files. Please also include your name at the top of your assignment1.txt file.
44
40
45
41
All files must be submitted via GitHub by 10:00am 6/30.
0 commit comments