#include <stdio.h> void main() {int a = 0, i; for (i=1; i<5; i++) switch (i) { case 0: case 1: case 2: a += 3;break; case 3: a += 2;break; default: a += 5; } } printf(“%d\n”, d); }
#include <stdio.h>
void main()
{ int a = 0, i; int d; for (i=1; i<5; i++) switch (i) {
case 0:
case 1:
case 2: a += 3;break;
case 3: a += 2;break;
default: a += 5; } printf("%d\n", d);
}