第二章 算法——程序的靈魂

@toc 2.5怎樣表示一個算法 2.5.6用計算機語言表示算法 【例2.18】求5! 編寫程序 #include<stdio.h> int main() { int i,t; t=1; i=2; while(i<=5) { t=t*i; i++; } printf("%d\n",t); return 0; } 運行結果 【例2.19】求多項式1-1/2+1/3-1/4+·
相關文章
相關標籤/搜索