math.h的运用

重载运算符

http://www.nowcoder.com/questionTerminal/7b1e4ffc39604be3b15959ce329da490

#include <stdio.h>
#include <math.h>
#define PI 3.1415926
int main(){
    int n,a,b;
    while(scanf("%d",&n)!=EOF){
        while(n--){
            scanf("%d%d",&a,&b);
            printf("%.2f\n",sin((float)(a-b)*PI/180));
        }
    }
}
(•̀ᴗ•́)و
全部评论
加油!
1 回复 分享
发布于 2021-03-30 21:15

相关推荐

点赞 评论 收藏
分享
点赞 评论 收藏
分享
评论
4
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务