习题5.1

来源:互联网 发布:风暴大陆兽魂进阶数据 编辑:程序博客网 时间:2024/06/07 03:32
#include <stdio.h>#include <stdlib.h>int main(){    int a,a1;    scanf("%d",&a);    a1=sqrt(a*a);    printf("%d\n",a1);    return 0;}

这里写图片描述
在不使用计算绝对值函数的情况下计算输出绝对值。

原创粉丝点击