摘要:
写了两个函数。 1 int even( int n ) 2 { 3 int ret = 1; 4 5 if (n < 0) 6 { 7 n = -n; 8 } 9 if (n % 2 == 1) 10 { 11 ret = 0; 12 } 13 14 return ret; 15 } 16 int 阅读全文
posted @ 2019-12-02 16:41
jason2018
阅读(1267)
评论(0)
推荐(0)
摘要:
程序只验证了样例 1 #include<stdio.h> 2 3 int q, r; //全局变量 4 int div(int a, int b); 5 int main(void) 6 { 7 int a, b; 8 int count = 0; 9 10 scanf("%d/%d", &a, & 阅读全文
posted @ 2019-12-02 16:07
jason2018
阅读(328)
评论(0)
推荐(0)
摘要:
1 #include<stdio.h> 2 4 int array_in(int x, int a[], int n); 5 6 int main(void) 7 { 8 int m, n, k; //三个数组的大小 9 10 /*第一个数组,数组长度是变量,C99支持,但vs不支持*/ 11 sc 阅读全文
posted @ 2019-12-02 14:35
jason2018
阅读(3606)
评论(0)
推荐(0)

浙公网安备 33010602011771号