摘要:
// 练习:使用二分查找,在一组有序元素中查找数据项 // 形参是数组,实参是数组名 #include <stdio.h> #include <stdlib.h> const int N=5; int binarySearch(int x[], int n, int item); // 函数声明 i 阅读全文
摘要:
#include<stdio.h> int main(){ int x ; printf("输入分数:"); scanf("%d",&x); if(x>0&&x<=100) switch(x/10){ case 10:printf("满分\n");break; case 9:printf("优秀\n");break; case 8:printf("良好\n");break; case 7:prin 阅读全文
摘要:
/*this is first C program*/ #include<stdio.h> int main() { printf("201983270561!") ; return 0; } #include<stdio.h> int main() { int x; printf("输入一个整数:\n") ; scanf("%d" ,&x); if(x%2==0) printf("该整数是偶数" 阅读全文