Question: i need a flow chart for this code in c Please give me a correct answer not on a software that generate it #include #include
i need a flow chart for this code in c Please give me a correct answer not on a software that generate it
#include #include
void startGuessTheNumberGame(); void startHangmanGam();
int main() { char name[20]; // string is a many character printf("Please Enter Your Name : "); // print the string in a screen scanf("%s",&name); // allow user to enter a string printf("Welcome %s", name); // print the user name and welcome
int Menu1 ; //define Integer to Enter a number to the menu1
do // print one time if while is false { printf(" Please Enter The Number Of The Game You Wish To Play , Or choose Exit 1.Guess The Number. 2.Hangman. 3.Exit ") ; // print menu
scanf("%d",&Menu1); // Enter the menu number
switch(Menu1) // to switch between case value { case 1 : // if user choose input number 1
break ; // go out the switch
case 2 : // if user choose input number 2
break ; // go out the switch
case 3 : //if user choose input number 3
break ; // go out the switch
default: // if input nether the case printf("your Choose is Invalid "); break; // go out the switch }
if(Menu1 == 3) // to exit the program { break ; // Exit the program } } while(1); // while input is true
return 0; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
