随笔分类 -  C语言

专升本
摘要:#include <stdio.h> #include <math.h> long toBinary(int num); int main(int argc, char const *argv[]) { int num; printf("Please input a number: "); scan 阅读全文
posted @ 2023-01-11 21:58 TnT… 阅读(106) 评论(0) 推荐(0)
摘要:#include <stdio.h> #include <math.h> int length(int arr[], int len) { int i; for(i = len-1; i >= 0; i--) { if(arr[i]) { return i + 1; } } return len; 阅读全文
posted @ 2023-01-10 15:42 TnT…