实验一

 

 

#include "stdafx.h"
#include<stdio.h>
#include<math.h>
int main()
{
    float x,y;
 scanf("%f%f",&x,&y);
 printf("z=%d\n",int(x+1/fabs(y)));
    printf("z=%15.6f\n",x+1/fabs(y));
 printf("z=%e\n",x+1/fabs(y));
 return 0;
}

 

 

posted @ 2019-04-11 15:12  赵木木木木🍈  阅读(108)  评论(0编辑  收藏  举报