c語言:一組數據中只有一個數字出現了一次。(使用位運算)
程序:#include<stdio.h>int main(){int arr[] = { 1,3,3,1,4,9,4,5,5 };int i = 0
c語言:有一個分數序列: 2/1+3/2+5/3+8/5+13/8+… 求出這個數列前 20 項的和
程序:#include <stdio.h>int main(){ double s=0,a=2,b=1; int t,i,n=20; //
c語言:一個球從 100 米高的自由落下,每次落地後反跳回原高度的一半
程序:#include <stdio.h>int main(){ double h=100; double t = h/2; doubl