摘要:
#include <stdio.h> //任意整型数组,由连续几个数组成,少其中一个数,利用程序求出少得数 main() { int a[5]={0,2,4,1},x=0,i; for(i=0;i<4;i++) x^=a[i]; for(i=0;i<=4;i++) x^=i; printf("%d" 阅读全文
摘要:
#include <stdio.h> //⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽ //交换两个整型变量的值 main() { int a,b; scanf("%d%d",&a,&b); printf("a=%d,b=%d\n"); a=⑴; b=⑵; a=⑶; printf("a=%d,b=%d\n"); getch 阅读全文