#include <stdio.h>
int main()
{
char a,b,c,d,e;
a=getchar();
b=getchar();
c=getchar();
d=getchar();
e=getchar();
putchar(a);
putchar(b);
putchar(c);
putchar(d);
putchar(e);
putchar('\n');
return 0;
}
#include <stdio.h>
int main()
{
int a;
printf("input the year:");
scanf("%d",&a);
if(a%4!=0)
printf("year:%d,month:2,days:28",a);
else
if(a%100!=0)
printf("year:%d,month:2,days:29",a);
else
if(a%400!=0)
printf("year:%d,month:2,days:29",a);
else
printf("year:%d,month:2,days:28",a);
printf("\n");
return 0;
}
#include <stdio.h>
int main()
{
int a,b,c;
scanf("%d,%d,%d",&a,&b,&c);
if(a+b>c&&a-b<c){
if(a==b&&b==c){
printf("等边三角形\n");}
if(a==b&&b!=c){
printf("等腰三角形\n");}
if((a*a==b*b+c*c)||(b*b==a*a+c*c)||(c*c==a*a+b*b)){
printf("直角三角形\n");}
if((a!=b&&b!=c)&&(a*a!=b*b+c*c)&&(b*b!=a*a+c*c)&&(c*c!=a*a+b*b)){
printf("一般三角形\n");}}
else
{printf("不能构成三角形\n");}
return 0;
}
#include <stdio.h>
int main()
{
double a;
scanf("%lf",&a);
if(a<500)
printf("a=%lf rate=0.00 tax=%lf profit=%lf\n",a,a*0.00,a);
else if(a>=500&&a<1000)
printf("a=%lf rate=0.05 tax=%lf profit=%lf\n",a,a*0.05,a*0.95);
else if(a>=1000&&a<2000)
printf("a=%lf rate=0.08 tax=%lf profit=%lf\n",a,a*0.08,a*0.92);
else if(a>=2000&&a<5000)
printf("a=%lf rate=0.10 tax=%lf profit=%lf\n",a,a*0.10,a*0.90);
else if(a>=5000)
printf("a=%lf rate=0.15 tax=%lf profit=%lf\n",a,a*0.15,a*0.85);
return 0;
}