1 写一个无参数无返回值的函数sayHello,并在main中执行
/* Note:Your choice is C IDE */
#include "stdio.h"
void sayhello()
{
printf("hello,it's printed by sayhello");
}
main()
{
sayhello();
}
2 写一个求x、y的平方和的平方根的函数,并在main中执行
/* Note:Your choice is C IDE */
#include "stdio.h"
#include "math.h"
void a()
{
int x,y;
float z;
scanf("%d %d",&x,&y);
z=sqrt(x*x+y*y);
printf("%f",z);
}
main()
{
a();
}