#include<stdio.h>#include<conio.h>#include<stdlib.h>floatfun(float h ){int tmp=(int)(h*1000+5)/10;retutn(float)tmp/100.0;}voidmain(){
FILE *wf;float a;system("CLS");printf("Enter a: ");scanf("%f",&a);printf("The original data is : ");printf("%f\n\n", a);printf("The result : %f\n",fun(a));/******************************/
wf=fopen("out.dat","w");fprintf(wf,"%f",fun(8.32533));fclose(wf);/*****************************/}