我想要显示10个随机数 可是运行后什么也不显示
/*教材140页 第三题*/
#include "stdio.h"
#include <stdlib.h>
float hanshu (); /*函数声明*/
int main()
{
float hanshu ();
}
float hanshu () /*函数定义*/
{
float n,m,x;
while (m<10)
{
n=rand();
if (n>1000 and n<10000)
{
m=m+1;
x=n/10.0;
printf("%0.1f ",x);
}
else
continue;
}
}
![img](https://img-mid.csdnimg.cn/release/static/image/mid/ask/800238854466143.jpg "#left")