2018年3月18日

交换两个数值的多种程序表示方法

摘要: (1)创建临时变量 #include<stdio.h> int main (){ int c; int a=10, b=20; printf("%d %d\n",a,b); c=b; a=b; b=a; printf("%d %d\n",a,b); return 0;} (2)利用变量之间的加减 # 阅读全文

posted @ 2018-03-18 23:05 你看人家子标 阅读(1144) 评论(0) 推荐(0)

导航