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; }
Find the error in each of the following code segments and explain how to correct it. a) x = 1; while (x <= 10); ++X; } b
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Find the error in each of the following code segments and explain how to correct it. a) x = 1; while (x <= 10); ++X; } b
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!