The following program contains 5 errors. Your job is to find and fix all 5 errors in the code. There may be syntax errors, logic errors, or both. This program should use a void function to print the...


C programming!


The following program contains 5 errors. Your job is to find and fix all 5 errors in the code. There may be syntax errors, logic errors, or both.<br>This program should use a void function to print the integers from 1 to 100 (inclusive) in descending order.<br>NOTE: There is no visible compiler or test cases to troubleshoot the program. Use what you know about the rules of C and the purpose of the program to fix the errors.<br>O Full Screen *<br>v Grading<br>code.c 8<br>New<br>2<br>3 void PrintFunction (int y)<br>4<br>No visible te<br>5- int main (void) {<br>int y =<br>100;<br>7<br>8<br>PrintFunction();<br>9<br>10<br>return 0;<br>11 }<br>12<br>13<br>void printFunction (int y)<br>14 -<br>while (y > 0) {<br>printf(

Extracted text: The following program contains 5 errors. Your job is to find and fix all 5 errors in the code. There may be syntax errors, logic errors, or both. This program should use a void function to print the integers from 1 to 100 (inclusive) in descending order. NOTE: There is no visible compiler or test cases to troubleshoot the program. Use what you know about the rules of C and the purpose of the program to fix the errors. O Full Screen * v Grading code.c 8 New 2 3 void PrintFunction (int y) 4 No visible te 5- int main (void) { int y = 100; 7 8 PrintFunction(); 9 10 return 0; 11 } 12 13 void printFunction (int y) 14 - while (y > 0) { printf("%d\n", y); --y; 15 16 17 18 return y; 19 }

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here