#if !defined(__HEADER_OTHERS)
#define __HEADER_OTHERS
#if !defined(EOF)
#include<stdio.h>
#endif
#if !defined(ULONG_MAX)
#include<limits.h>
#endif

short set_key(short *key){
printf("Input key:");
scanf("%d",key);
*key%=(26*26*26);
return(*key);
}

short input_massage(short *key){
char ch;
FILE *fp;
unsigned long int num=0;

if((fp=fopen("cypher.txt","w"))==NULL)
return(-1);
puts("Input massage");
while((ch=tolower(getch()))!='\r'&&num<ULONG_MAX){
putchar(ch);
fputc(scramble(&ch,*key),fp);
if(ch=='\b'&&num){
if(*key)
*key-=1;
else
*key=26*26*26-1;
num--;
}else{
*key=(*key+1)%(26*26*26);
num++;
}
}
fclose(fp);
return(0);
}

short output_cypher(void){
char ch;
FILE *fp;

if((fp=fopen("cypher.txt","r"))==NULL)
return(-1);
while((ch=fgetc(fp))!=EOF)
putchar(ch);
fclose(fp);
return(0);
}
#endif

#include<stdio.h>
#include<time.h>
#define WAIT_UNIT 10/* 1/NUM秒 */

/******************警告********************
** **
** -1が要素に含まれていないと **
** 無限ループが起こってしまう。 **
** **
******************************************/
short int timing[]={1,2,5,3,5,3,2,4,3,2,3,1,3,4,5,1,2,5,1,1,4,6,7,2,4,6,2,3,5,21,1,2,4,-1};/* -1は外してはいけない(無限ループが発生してしまう。) */
unsigned long i=0;

/* x[(1/NUM)秒]だけ動作停止 */
int wait(short int x){
clock_t c1=clock();
clock_t c2;

while(1){
if((c2=clock())==(clock_t)-1)
return(-1);
if((short int)(((c2-c1)*WAIT_UNIT)/CLOCKS_PER_SEC)>=x)
return(0);
}
}

int main(void){
if(timing[i]<0)
return(0);
wait(timing[i++]);
putchar('\a');
main();

return(10);
}

timingの中身を変えるとアラームの間隔がかわりますよ

#include<stdio.h>

void f(int x){

if(x%2)

printf("奇数");

else

printf("偶数");

}


int main(void){

int x;


printf("整数を入力してください");

scanf("%d",&x);


f(x);


return(0);

}