(Solved) : Feedback Challenge Activity Tayarrere 142 Syntax Errors Retype Statements Correcting Synta Q43937339 . . .


Feedback CHALLENGE ACTIVITY tayarrere 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> int main(void) { int songNum; songNum = 5; Your solution goes here / return 0; 11) Run 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 #include <stdio.h> int main(void) int userum; user Num = 5; Your solution goes here return e; 1 11 Jump to level 1 Write statements that output variable numPens as follows. End with a newline Ex: If numPens is 10, the program should output: Number of pens: 10 Our system will automatically run your program several times, trying different input values to ensure your program works for an input values 1 #include <stdio.h> 3 int main(void) { int numPens; scanf(“%d”, &numPens) /* Your solution goes here // 10 return ; 12 Next Show transcribed image text Feedback CHALLENGE ACTIVITY tayarrere 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 int main(void) { int songNum; songNum = 5; Your solution goes here / return 0; 11) Run 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 #include int main(void) int userum; user Num = 5; Your solution goes here return e; 1 11
Jump to level 1 Write statements that output variable numPens as follows. End with a newline Ex: If numPens is 10, the program should output: Number of pens: 10 Our system will automatically run your program several times, trying different input values to ensure your program works for an input values 1 #include 3 int main(void) { int numPens; scanf(“%d”, &numPens) /* Your solution goes here // 10 return ; 12 Next
Expert Answer
Answer to Feedback CHALLENGE ACTIVITY tayarrere 1.4.2: More syntax errors Retype the statements, correcting the syntax errors. pri…
OR