输入一个正整数n(n<=16),生成一张阶乘表,输出从0!倒n!的值。题目要求用递归,其实我是不喜欢递归的,而且这里还没学function,所以写了一个无递归#include <stdio.h> #include <stdlib.h> /* run this program using the console pauser or add your own ge...
【练习2-9】整数4则运算:输入2个正整数,计算并输出它们的和、差、积、商。我这里做了少少改进,不仅限于整数,并对除数不为0做了判断#include <stdio.h> #include <stdlib.h> #define DOUBLE_EPS 1e-15 int main(int argc, char *argv[]) { double x, y; ...
Top