热门

最新

红包

立Flag

投票

同城

我的

发布
asheng95
Asheng95
5 年前
trueasheng95

新人问一下有《笨方法学习Python3》的中文电子版吗?(不是Python 第3版)

CSDN App 扫码分享
分享
5
点赞
打赏
  • 复制链接
  • 举报
下一条:
#include <stdio.h> #include <math.h> #define PI3.1415926 main() { float a,b,c,s,alfa; printf("输入三角形的两边A、B及其夹角a:\n"); scanf("%f%f%f",&a,&b,&alfa); c=sqrt(a*a+b*b-2*a*b*cos(alfa)); s=a*b*sin(alfa)/2; printf("\n第三边C=%1f\n面积S=%.1f\n",c,s); }
立即登录