Page 1 of 1

Find the error in each of the following code segments and explain how to correct it. a) x = 1; while (x <= 10); ++X; } b

Posted: Mon May 02, 2022 12:23 pm
by answerhappygod
Find The Error In Each Of The Following Code Segments And Explain How To Correct It A X 1 While X 10 X B 1
Find The Error In Each Of The Following Code Segments And Explain How To Correct It A X 1 While X 10 X B 1 (56.91 KiB) Viewed 37 times
Please use c
Find the error in each of the following code segments and explain how to correct it. a) x = 1; while (x <= 10); ++X; } b) for (double y = .1; y != 1.0; y += .1) { printf("%f\n", y); } c) switch (n) { case 1: puts("The number is 1"); case 2: puts("The number is 2"); break; default: puts("The number is not 1 or 2"); break; }