摘要: #include <stdio.h> #include <math.h> int main(){ float a,b,c,s,area; scanf("%f%f%f",&a,&b,&c); if(a+b>c&&a+c>b&&b+c>a) { s=(a+b+c)/2; area=sqrt(s*(s-a 阅读全文
posted @ 2023-05-07 21:16 长河饮马、 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1、计算Fibonacci数列 Fibonacci数列又称斐波那契数列,又称黄金分割数列,指的是这样一个数列:1、1、2、3、5、8、13、21。 C语言实现的代码如下: /* Displaying Fibonacci sequence up to nth term where n is enter 阅读全文
posted @ 2023-05-07 20:08 长河饮马、 阅读(16) 评论(0) 推荐(0) 编辑