⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 snobreak.c

📁 C源码集
💻 C
字号:
#include <stdio.h>int main (void){	int i;	printf("What day is it? ");	scanf("%i", &i);	printf("On the ");	switch (i){		case 1: printf("1st"); break;		case 2: printf("2nd"); break;		case 3: printf("3rd"); break;		default: printf("%ith", i); break;		}	printf(" day of Christmas, my true love sent to me \n");	switch (i) {		case 12: printf("twelve lords a leaping, \n");		case 11: printf(" eleven ladies dancing, \n");		case 10: printf("  ten pipers piping, \n");		case 9 : printf("   nine drummers drumming, \n");		case 8 : printf("    eight maids a milking, \n");		case 7 : printf("     seven swans a swimming, \n");		case 6 : printf("      six geese a laying, \n");		case 5 : printf("       five gold rings, \n");		case 4 : printf("        four calling birds, \n");		case 3 : printf("         three french hens, \n");		case 2 : printf("          two turtle doves, and a \n");		case 1 : printf("           partridge in a pear tree \n");		}	return 0;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -