Please Advise Following Requirements Modify Program Figure 212 Guess Switch Ask User Ente Q43862519
Please advise on the following requirements.
Modify the program Figure 2.12 (guess/switch). Ask the user to enter 10 … 15Follow this table to output the correct value:guess output—– —— 10 A 11 B 12 C 13 D 14 E 15 FIn other words, the program used to do this:3Too HighNow it should do this 14E
This is the code
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char** argv) {
int guess;
printf(“Pick a number 0, 1, 2, 3: “);
scanf(“%d”, &guess);
switch(guess){
case 0: printf(“Not even closen”); break;
case 1: printf(“Closen”); break;
case 2: printf(“Right onn”); break;
case 3: printf(“Too highn”); break;
}
return (0);
}
Thanks
Expert Answer
Answer to Please advise on the following requirements. Modify the program Figure 2.12 (guess/switch). Ask the user to enter 10 …..
OR