Something
public text v1 · immutable#include <stdio.h>
main()
{
int input,x;
for (x = 0; input !=2 && input !=4 ; x++)
{
printf ("\nPlease enter a number:");
scanf("%d", &input);
switch (input)
{
case 1 :
printf ("You entered a one");
break;
case 2 :
printf("GoodBye\n");
printf ("That's all folk\n");
break;
case 3 :
printf("You have prompted %d times",x);
break;
case 4 :
printf("Exiting");
break;
}
}
}