This is a self-help program I made for useful break activities. At the end of it need to type a number, then press "enter" to restart. I'd rather have to only type anything, or any number.
#include <stdio.h>
#include <stdlib.h>
main()
{
  int i;
  srand((unsigned)time(NULL));
  i = rand();
  int k;
  k = (int)i%22;
  printf("\n\n");
   switch(k){
            case 0: printf("%\t Weather"); printf(" weather"); break;                        
            case 1: printf("\t Hand exercises ok"); break;
            case 2: printf("\t BR break"); break;
            // etc etc            
            case 15: printf("\t ~~ DOODLE ON PAPER ## "); break;
            case 16: printf("\t Practice Mental Math "); break;
            case 17: printf(" \tgo to SNOPES.com\t"); break;
            case 18: printf("\t Browse JAVA API"); break;
            case 19: printf("\t Left handed writing"); break;
            case 20: printf("\tGo outside OUTSIDE\t"); break;
            case 21: printf("\tCall M&K\t"); break;
            case 22: printf("TRASH CAN BBALL\t"); break;
            }
            printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
        long g;
        scanf("%d", &g);
        if(g >0){
                 system("cls");
                 main();
                 }
     system("pause");
}
I use this as a simple Windows App. If there are other issues/problems I'm totally open to criticism as I'm still new to C. I appreciate any tips or advice.
 
     
     
     
     
    