Something about programming

July 2, 2009 at 08:14:00
Specs: Windows XP
i was wondering how to do this:

Enter your membership
Normal = 1
Gold = 2
Platinum = 3

If 1 goto normal;
if 2 goto gold;
if 3 goto platinum;

printf("this is normal");

printf("this is gold");

printf("this is platinum");

so the question is..
how can i form to make it goes like
if input 1, then goto normal
if input 2, then goto gold
if input 3, then goto platinum

what command can help doing this?

See More: Something about programming

Report •

July 2, 2009 at 09:10:54
Read your input then code the switch-case-break statement to operate a multiple choice.

Sorry I can't go further but I am a skilled coder and I want you too become a good programmer. Use my hint and go on by your own.

Report •

July 6, 2009 at 04:04:40
hey hey..
thx for the suggestion..
i'll use switch..
switch easier than if and else..
thx alot!!

Report •

Related Solutions

Ask Question