Hi, do you know why my output does not working properly..
Actually my output should looping,but it straightly ending the program..
#include<conio.h>
#include<stdio.h>
int main ()
{
int choice = 0 ;
while ((choice>=1)&&(choice<=5))
{
printf ("\nPlease Choose No 1 , 2 , 3 , 4 , 5\n");
printf ("Enter your choice");
scanf ("%d", &choice);
}
switch (choice)
{
case 1 :
printf ("RM32");
break ;
case 2 :
printf ("RM23");
case 3 :
printf ("RM43");
break ;
case 4 :
printf ("RM44");
break;
default :
printf ("Program will exit now..");
}
getch ();
return 0 ;
}