#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { int m, n, i; double sum = 0; printf("Please input a number:"); scanf("%d",...
【练习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