Menu

Feedback Challenge Activity 141 Basic Syntax Errors Type Statements Correct One Syntax Err Q43895585

Feedback? CHALLENGE ACTIVITY 1.4.1: Basic syntax errors. Type the statements. Then, correct the one syntax error in each statCHALLENGE ACTIVITY 1.4.2. More syntax errors. Retype the statements, correcting the syntax errors. printf(Num: %dn, songnuFeedback? CHALLENGE ACTIVITY 1.4.1: Basic syntax errors. Type the statements. Then, correct the one syntax error in each statement. Hints: Statements end in semicolons, and string literals use double quotes printf(“Predictions are hard. n”; printf(“Especially ‘); printf(“about the future.n”). print(“Num is: %dn”, userNum); 1 Winclude <stdio.h> D! 3 int main(void) int userum userNum = 5; ! /* Your solution goes here return 0; 10 11 ) CHALLENGE ACTIVITY 1.4.2. More syntax errors. Retype the statements, correcting the syntax errors. printf(“Num: %dn”, songnum); printf(“%dn”, int songNum); printf(“%d songsn” songNum); Note: These activities may test code with different test values. This activity will perform two tests: the first with songNum = 5, the second with songNum = 9. See How to Use zyBooks. 1 include <stdio.h> D! int main(void) int songNum; songNum = 5: !1 “Your solution goes here / return ; Show transcribed image text Feedback? CHALLENGE ACTIVITY 1.4.1: Basic syntax errors. Type the statements. Then, correct the one syntax error in each statement. Hints: Statements end in semicolons, and string literals use double quotes printf(“Predictions are hard. n”; printf(“Especially ‘); printf(“about the future.n”). print(“Num is: %dn”, userNum); 1 Winclude D! 3 int main(void) int userum userNum = 5; ! /* Your solution goes here return 0; 10 11 )
CHALLENGE ACTIVITY 1.4.2. More syntax errors. Retype the statements, correcting the syntax errors. printf(“Num: %dn”, songnum); printf(“%dn”, int songNum); printf(“%d songsn” songNum); Note: These activities may test code with different test values. This activity will perform two tests: the first with songNum = 5, the second with songNum = 9. See How to Use zyBooks. 1 include D! int main(void) int songNum; songNum = 5: !1 “Your solution goes here / return ;

Expert Answer


Answer to Feedback? CHALLENGE ACTIVITY 1.4.1: Basic syntax errors. Type the statements. Then, correct the one syntax error in each…

OR