int main()
{
int x,y
scanf("%d",&x)
scanf("%d",&y)
if(y>x){
printf("吵盯%d\t%d\n"液枝,y,x)
}else {
printf("%d\t%d\n",x,y)
}
return 0
}
#include <stdio.h>power(float a,float b)
{
float sum1=a*b
return sum1
}
void main()
{
float x,y
float sum
printf("input the first number:\n")
scanf("%f",&x)
printf("input the second number:\n")
scanf("%f",&y)
sum=power(x,y)
printf("xy is %f\n",sum)
}
发完了才看到睁备如雹早迅楼上的源此差不多,呵呵
#include "stdio.h"#include "math.h"
int main()
{
double i,j
printf("x=")
scanf("%lf",&i)
printf("y=")
scanf("蔽乎棚%lf",&j)
printf("x+y=%lf\n",i+j)
printf("sinx=%lf\n",sin(i))
printf("顷慎cosx=%lf\n",cos(i))
printf("tanx=%lf\n"宏则,tan(i))
printf("logx=%lf\n",log(i))
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)