#include<stdio.h> int main() { int menuinpt; printf("Welcome to C game!!!!\n"); printf("1. Play Game\n"); read: printf("Enter a Command to start : "); scanf("%d", &menuinpt); if (menuinpt != 1) { goto read; } if (menuinpt == 1) { char * name; printf("Hello Dude! Looks like you are gonna play this games\n"); printf("I am Richard your guide of this game.\n"); printf("Now you gotta tell me your name\n>"); scanf("%d", &name); printf("Okay your name is %d", name); getchar(); } }
Your Name is 48
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)