🌈 style:

This commit is contained in:
lzy
2024-05-26 15:39:14 +08:00
parent 6f28a3384a
commit a57bbdb4c1
156 changed files with 765 additions and 770 deletions

View File

@@ -11,7 +11,7 @@
// 闰年的判断能被4整除但不能被100整除或者能被400整除
int main()
int main( )
{
int year;

View File

@@ -1,10 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#define LEFT 1
#define LEFT 1
#define RIGHT 100
int main()
int main( )
{
int i;
int sum = 0;

View File

@@ -1,26 +1,20 @@
#include <stdio.h>
#include <stdlib.h>
int main()
int main( )
{
int ch;
ch = getchar();
ch = getchar( );
switch (ch)
{
case 'a':
case 'A':
printf("Ant\n");
break;
case 'A': printf("Ant\n"); break;
case 'b':
case 'B':
printf("Butterfly\n");
break;
case 'B': printf("Butterfly\n"); break;
case 'c':
case 'C':
printf("Cobra\n");
break;
case 'C': printf("Cobra\n"); break;
default:
printf("Input error");
// break;