题目内容

编写程序,求输入的三个整数的最小值。

查看答案
更多问题

请将代码补充完整。01 #include 02 #define N 10003 int main()04 {05 int n, key,nums[N];06 scanf("%d%d", &n,&key);07 for (int i = 0; i < n; i++)08 scanf("%d", &nums[i]);09 int mid, low = 0, high = n - 1;10 while ()11 {12 mid =;1314 if (key == nums[mid]) break;15 else if (key < nums[mid]) high = mid - 1;16 else ;17 }18 if () printf("not found\n");19 else printf("found\n");20 return 0;21 }

请将代码补充完整。01 #include 02 #define N 5003 int main()04 {05 char str[N], digital[N];06 int i = 0, j = 0;07 scanf("%s", str);08 while ()09 {10 if (str[i] >= '0'&&)11 digital[j++] = str[i];12 i++;13 }14 digital[j] = '\0';15 printf("%s", digital);16 if ()17 printf("no number");18 return 0;19 }

请将代码补充完整。01 #include02 #include03 #define N 304 #define LEN 1305 int main()06 {07 int count = 0;08 char password[LEN],input[LEN];09 scanf("%s", password);10 while ()11 {12 scanf("%s", input);13 if (strcmp() == 0)14 break;15 ++count;16 }17 if (count>=N)18 printf("sorry\n");19 else20 printf("welcome\n");21 return 0;22 }

请将代码补充完整。01 #include 02 #include 03 #define N 1004 #define LEN 500506 int main()07 {08 char name[N][LEN];09 int i,j,index,maxLen=LEN;1011 for(i=0;i

答案查题题库